summaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorjfons <joan.fonssanchez@gmail.com>2022-02-08 19:24:50 +0100
committerjfons <joan.fonssanchez@gmail.com>2022-02-08 19:24:50 +0100
commite0c82913ff39ab036f3c440f9e064f91ed797bc7 (patch)
tree0e840f2a2894db3f14c8e2f76861a0a7a14647d3 /editor/plugins
parent592e92d938ce4eeb053e208dc673598d9aaa727a (diff)
Fix navigation in 3D viewport
The incorrect initialization of EditData::instant to true was preventing the navigation code to run until the transform gizmo was used.
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index dea637e82e..67079a6965 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -4377,7 +4377,7 @@ Node3DEditorViewport::Node3DEditorViewport(Node3DEditor *p_spatial_editor, Edito
_edit.mode = TRANSFORM_NONE;
_edit.plane = TRANSFORM_VIEW;
_edit.snap = true;
- _edit.instant = true;
+ _edit.instant = false;
_edit.gizmo_handle = -1;
_edit.gizmo_handle_secondary = false;