aboutsummaryrefslogtreecommitdiff
path: root/tools/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorRémi Verschelde2016-01-15 12:17:06 +0100
committerRémi Verschelde2016-01-15 12:17:06 +0100
commitbbeac36cb59bfbec6cc14e2448093952f93a6355 (patch)
tree17a3db6aff02d3424334b5d888fd711ddb878052 /tools/editor/plugins/spatial_editor_plugin.cpp
parent698b338bc8e98d98a0ba903b06f8db55855e4cfb (diff)
parente187762c2d9c73650a84f633aab83d447e725d3e (diff)
downloadgodot-bbeac36cb59bfbec6cc14e2448093952f93a6355.tar.gz
godot-bbeac36cb59bfbec6cc14e2448093952f93a6355.tar.zst
godot-bbeac36cb59bfbec6cc14e2448093952f93a6355.zip
Merge pull request #3356 from neikeq/qwe_dialog
Spatial/Canvas Editor: Ignore unhandled input if there is a dialog
Diffstat (limited to 'tools/editor/plugins/spatial_editor_plugin.cpp')
-rw-r--r--tools/editor/plugins/spatial_editor_plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/editor/plugins/spatial_editor_plugin.cpp b/tools/editor/plugins/spatial_editor_plugin.cpp
index 29d2a7774..e47dcbf30 100644
--- a/tools/editor/plugins/spatial_editor_plugin.cpp
+++ b/tools/editor/plugins/spatial_editor_plugin.cpp
@@ -3529,10 +3529,10 @@ void SpatialEditor::_instance_scene() {
void SpatialEditor::_unhandled_key_input(InputEvent p_event) {
- if (!is_visible())
+ if (!is_visible() || window_has_modal_stack())
return;
- {
+ {
EditorNode *en = editor;
EditorPlugin *over_plugin = en->get_editor_plugin_over();