Selaa lähdekoodia

Editor: Fixed EditorControls being off after clearing.

Mr.doob 10 vuotta sitten
vanhempi
commit
97d2727153
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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();
 
 	} );