diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-03-05 12:17:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 12:17:57 +0100 |
commit | bb8de092a1b39fd339dc1ed4fa34ec8f3537297b (patch) | |
tree | 15ec37abcfff540c9e5f85e432e8453827162ca2 /editor | |
parent | f0b70ed52878e8148a2773d2a625652092f18de2 (diff) | |
parent | a4e6e2f342737bb2c4d22816a83e76a0c27f5ee9 (diff) |
Merge pull request #26630 from Xrayez/spatial-mouse-uncapture
Ensure to disable freelook when leaving spatial editor
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/spatial_editor_plugin.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/editor/plugins/spatial_editor_plugin.cpp b/editor/plugins/spatial_editor_plugin.cpp index 1e9ff87fd3..ed11d26f25 100644 --- a/editor/plugins/spatial_editor_plugin.cpp +++ b/editor/plugins/spatial_editor_plugin.cpp @@ -2108,9 +2108,11 @@ void SpatialEditorViewport::_notification(int p_what) { set_process(visible); - if (visible) + if (visible) { _update_camera(0); - + } else { + set_freelook_active(false); + } call_deferred("update_transform_gizmo_view"); } |