diff options
| author | Juan Linietsky | 2017-12-26 09:48:50 -0300 |
|---|---|---|
| committer | Juan Linietsky | 2017-12-26 09:49:31 -0300 |
| commit | 4a2eef4ad801a3dc5c07a575e59b8f1eafa42c6e (patch) | |
| tree | 599bdfadc50bc5526d18633891bc86529b60ec6f /scene/main/viewport.cpp | |
| parent | 37aab45091961e7c063e9c77d6c4835b0c14806a (diff) | |
| download | godot-4a2eef4ad801a3dc5c07a575e59b8f1eafa42c6e.tar.gz godot-4a2eef4ad801a3dc5c07a575e59b8f1eafa42c6e.tar.zst godot-4a2eef4ad801a3dc5c07a575e59b8f1eafa42c6e.zip | |
Diffstat (limited to 'scene/main/viewport.cpp')
| -rw-r--r-- | scene/main/viewport.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp index 76af70f32..fa6a7832f 100644 --- a/scene/main/viewport.cpp +++ b/scene/main/viewport.cpp @@ -184,7 +184,6 @@ Viewport::GUI::GUI() { key_focus = NULL; mouse_over = NULL; - cancelled_input_ID = 0; tooltip = NULL; tooltip_popup = NULL; tooltip_label = NULL; @@ -1620,9 +1619,6 @@ bool Viewport::_gui_drop(Control *p_at_control, Point2 p_at_pos, bool p_just_che void Viewport::_gui_input_event(Ref<InputEvent> p_event) { - if (p_event->get_id() == gui.cancelled_input_ID) { - return; - } //? /* if (!is_visible()) { @@ -1752,7 +1748,6 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) { _gui_call_input(gui.mouse_focus, mb); } - get_tree()->call_group_flags(SceneTree::GROUP_CALL_REALTIME, "windows", "_cancel_input_ID", mb->get_id()); get_tree()->set_input_as_handled(); if (gui.drag_data.get_type() != Variant::NIL && mb->get_button_index() == BUTTON_LEFT) { @@ -1825,7 +1820,6 @@ void Viewport::_gui_input_event(Ref<InputEvent> p_event) { gui.drag_data=Variant(); //always clear }*/ - get_tree()->call_group_flags(SceneTree::GROUP_CALL_REALTIME, "windows", "_cancel_input_ID", mb->get_id()); get_tree()->set_input_as_handled(); } } |
