summaryrefslogtreecommitdiff
path: root/platform/javascript
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-03 13:39:25 +0200
committerGitHub <noreply@github.com>2019-10-03 13:39:25 +0200
commit9a115ccaf3dd0224de0e5b1a2d116e53b6fabffb (patch)
tree9d6106ff824a1cdadd2fbd247188af7ce5da351a /platform/javascript
parent77b1214a9a63efdd6e3cf6772965777cc06408bb (diff)
parent5bfe32eaa4b2254b48f39bde3e7bb6055eae9b83 (diff)
Merge pull request #32518 from nekomatata/fix-revert-cursor
Properly revert cursor when using set_custom_mouse_cursor with null
Diffstat (limited to 'platform/javascript')
-rw-r--r--platform/javascript/os_javascript.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/javascript/os_javascript.cpp b/platform/javascript/os_javascript.cpp
index 0179bf813d..b0661cb4dd 100644
--- a/platform/javascript/os_javascript.cpp
+++ b/platform/javascript/os_javascript.cpp
@@ -574,6 +574,8 @@ void OS_JavaScript::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_s
}, cursors[p_shape].utf8().get_data());
/* clang-format on */
cursors[p_shape] = "";
+
+ cursors_cache.erase(p_shape);
}
set_cursor_shape(cursor_shape);