Browse Source

Merge pull request #43307 from aaronfranke/update-grid

Move call to update the 3D grid into check for updating the view
Rémi Verschelde 4 years ago
parent
commit
3ec10bb07c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      editor/plugins/node_3d_editor_plugin.cpp

+ 1 - 1
editor/plugins/node_3d_editor_plugin.cpp

@@ -351,8 +351,8 @@ void Node3DEditorViewport::_update_camera(float p_interp_delta) {
 
 		update_transform_gizmo_view();
 		rotation_control->update();
+		spatial_editor->update_grid();
 	}
-	spatial_editor->update_grid();
 }
 
 Transform Node3DEditorViewport::to_camera_transform(const Cursor &p_cursor) const {