diff options
Diffstat (limited to 'scene')
-rw-r--r-- | scene/main/viewport.cpp | 2 |
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); |