Fixes crash, closes #24038

This commit is contained in:
Juan Linietsky 2018-11-28 13:09:56 -03:00
parent a741f83811
commit 167eb269ec

View file

@ -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);