Explorar o código

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.
jfons %!s(int64=3) %!d(string=hai) anos
pai
achega
e0c82913ff
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      editor/plugins/node_3d_editor_plugin.cpp

+ 1 - 1
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;