From 1b7f99d9e5bca9f524b4e902b3975397b8762557 Mon Sep 17 00:00:00 2001 From: "Daniel J. Ramirez" Date: Sun, 29 Oct 2017 14:31:38 -0600 Subject: Several improvements to GridMap. Fixed crash when undoing. More ergonomic shortcuts. Fixed freelook navigation. --- editor/plugins/spatial_editor_plugin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'editor/plugins/spatial_editor_plugin.cpp') diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 25ca2d731e..33fe6278e3 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -1803,6 +1803,11 @@ void SpatialEditorViewport::_sinput(const Ref &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) { -- cgit v1.2.3