summaryrefslogtreecommitdiff
path: root/tools/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-01-16 22:41:10 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-01-16 22:41:10 -0300
commit72fcb8a35beab251d01864bc67da3e3a8e75aed6 (patch)
tree9ad5837e4237d1071a9e1a5b40efdaffa3f89f33 /tools/editor/plugins/spatial_editor_plugin.cpp
parent40818299231fe1854635ffe36d8b9565f430b35f (diff)
-Moved all the "root" input handling for GUI from individual Controls to Viewport.
-Should fix several reported bugs when controls don't have a common parent This may have added new bugs, so please report if so!
Diffstat (limited to 'tools/editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/spatial_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp
index e47dcbf30f..ab5a20fa29 100644
--- a/tools/editor/plugins/spatial_editor_plugin.cpp
+++ b/tools/editor/plugins/spatial_editor_plugin.cpp
@@ -3529,7 +3529,7 @@ void SpatialEditor::_instance_scene() {
void SpatialEditor::_unhandled_key_input(InputEvent p_event) {
- if (!is_visible() || window_has_modal_stack())
+ if (!is_visible() || get_viewport()->gui_has_modal_stack())
return;
{