Browse Source

Editor: Hide selectionBox on init.

Mr.doob 12 năm trước cách đây
mục cha
commit
c69fd8d9e6
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      editor/js/ui/Viewport.js

+ 1 - 0
editor/js/ui/Viewport.js

@@ -20,6 +20,7 @@ var Viewport = function ( signals ) {
 
 
 	var selectionBox = new THREE.BoxHelper();
 	var selectionBox = new THREE.BoxHelper();
 	selectionBox.material.color.setHex( 0xffff00 );
 	selectionBox.material.color.setHex( 0xffff00 );
+	selectionBox.visible = false;
 	sceneHelpers.add( selectionBox );
 	sceneHelpers.add( selectionBox );
 
 
 	var selectionAxis = new THREE.AxisHelper( 100 );
 	var selectionAxis = new THREE.AxisHelper( 100 );