summaryrefslogtreecommitdiff
path: root/editor/plugins/spatial_editor_plugin.cpp
diff options
context:
space:
mode:
authorDaniel J. Ramirez <djrmuv@gmail.com>2017-10-29 14:31:38 -0600
committerDaniel J. Ramirez <djrmuv@gmail.com>2017-11-09 16:18:48 -0600
commit1b7f99d9e5bca9f524b4e902b3975397b8762557 (patch)
treeb5c001b82def1412af78b5e63f16d225768b538c /editor/plugins/spatial_editor_plugin.cpp
parent5cb1d064bc68d5e695860aa03db9d70404a15f6d (diff)
Several improvements to GridMap.
Fixed crash when undoing. More ergonomic shortcuts. Fixed freelook navigation.
Diffstat (limited to 'editor/plugins/spatial_editor_plugin.cpp')
-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 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<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) {