diff options
| author | Ignacio Etcheverry | 2016-01-15 11:37:45 +0100 |
|---|---|---|
| committer | Ignacio Etcheverry | 2016-01-15 11:37:45 +0100 |
| commit | e187762c2d9c73650a84f633aab83d447e725d3e (patch) | |
| tree | 862b20148a74a961847c75ba4e9a07212004097a /tools/editor/plugins/spatial_editor_plugin.cpp | |
| parent | ccbf8b42f4043735433603ef5bae26cd7a0d4bce (diff) | |
| download | godot-e187762c2d9c73650a84f633aab83d447e725d3e.tar.gz godot-e187762c2d9c73650a84f633aab83d447e725d3e.tar.zst godot-e187762c2d9c73650a84f633aab83d447e725d3e.zip | |
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.cpp | 4 |
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(); |
