浏览代码

TransformControls: Remove warning when activate rotate

Mugen87 7 年之前
父节点
当前提交
4124aa0505
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      examples/js/controls/TransformControls.js

+ 3 - 1
examples/js/controls/TransformControls.js

@@ -422,11 +422,13 @@
 			],
 			],
 
 
 			XYZE: [
 			XYZE: [
-				[ new THREE.Mesh() ]// TODO
+				[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1, 0.12, 2, 24 ), pickerMaterial ) ]
 			]
 			]
 
 
 		};
 		};
 
 
+		this.pickerGizmos.XYZE[ 0 ][ 0 ].visible = false; // disable XYZE picker gizmo
+
 		this.setActivePlane = function ( axis ) {
 		this.setActivePlane = function ( axis ) {
 
 
 			if ( axis === "E" ) this.activePlane = this.planes[ "XYZE" ];
 			if ( axis === "E" ) this.activePlane = this.planes[ "XYZE" ];