summaryrefslogtreecommitdiffstats
path: root/scene/main/scene_tree.cpp
diff options
context:
space:
mode:
authorMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-03-09 01:04:56 +0100
committerMarkus Sauermann <6299227+Sauermann@users.noreply.github.com>2022-03-09 07:54:03 +0100
commit0fce98b4b5f568298477b175c70510924793f6b0 (patch)
tree6367f0e7fff5501b043d92645bffa17ba316b62c /scene/main/scene_tree.cpp
parentf73ef03a86912dfe5c6eb73a99c3f50c144c5030 (diff)
downloadredot-engine-0fce98b4b5f568298477b175c70510924793f6b0.tar.gz
Update mouse cursor shape after changes
This fixes some cases where the mouse cursor shape did not change automatically, but instead required a MouseMove to update.
Diffstat (limited to 'scene/main/scene_tree.cpp')
-rw-r--r--scene/main/scene_tree.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/main/scene_tree.cpp b/scene/main/scene_tree.cpp
index d1e8b477a6..0ff99bdab6 100644
--- a/scene/main/scene_tree.cpp
+++ b/scene/main/scene_tree.cpp
@@ -1087,6 +1087,7 @@ void SceneTree::_change_scene(Node *p_to) {
if (p_to) {
current_scene = p_to;
root->add_child(p_to);
+ root->update_mouse_cursor_shape();
}
}