summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-11-16 19:27:27 +0100
committerGitHub <noreply@github.com>2017-11-16 19:27:27 +0100
commitbb1d1912ea73592670f75a6ec89845766dabb4b0 (patch)
treeb7d3d422a31e0c6abceee3bb1cb5aeded49b32bf /editor/plugins
parent763ca3dae1aac597965a8dd230e91f888707664c (diff)
parent1b7f99d9e5bca9f524b4e902b3975397b8762557 (diff)
Merge pull request #12488 from djrm/pr_gridmap_fixes
Several improvements to GridMap.
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/spatial_editor_plugin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp
index b87084e392..ca80908ab5 100644
--- a/editor/plugins/spatial_editor_plugin.cpp
+++ b/editor/plugins/spatial_editor_plugin.cpp
@@ -1808,6 +1808,11 @@ void SpatialEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
if (!k->is_pressed()) emit_signal("toggle_maximize_view", this);
}
}
+
+ // freelook uses most of the useful shortcuts, like save, so its ok
+ // to consider freelook active as end of the line for future events.
+ if (freelook_active)
+ accept_event();
}
void SpatialEditorViewport::set_freelook_active(bool active_now) {