Parcourir la source

Editor: Fixed EditorControls being off after clearing.

Mr.doob il y a 10 ans
Parent
commit
97d2727153
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      editor/js/Viewport.js

+ 1 - 0
editor/js/Viewport.js

@@ -227,6 +227,7 @@ var Viewport = function ( editor ) {
 
 	signals.editorCleared.add( function () {
 
+		controls.center.set( 0, 0, 0 );
 		render();
 
 	} );