summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-11-28 13:09:56 -0300
committerJuan Linietsky <reduzio@gmail.com>2018-11-28 13:10:23 -0300
commit167eb269ec6310d9289a5f33c554af185aa87e9c (patch)
tree68de718ba90b3fb770247e482b5bad0a6d6cc921 /scene
parenta741f83811668fd89ca0601568c8511185adedc2 (diff)
Fixes crash, closes #24038
Diffstat (limited to 'scene')
-rw-r--r--scene/main/viewport.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index a98ae01c17..9ceac0d7b0 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -2498,7 +2498,7 @@ void Viewport::_drop_mouse_focus() {
Ref<InputEventMouseButton> mb;
mb.instance();
mb->set_position(c->get_local_mouse_position());
- mb->set_global_position(gui.mouse_focus->get_local_mouse_position());
+ mb->set_global_position(c->get_local_mouse_position());
mb->set_button_index(i + 1);
mb->set_pressed(false);
c->call_multilevel(SceneStringNames::get_singleton()->_gui_input, mb);