xzw 9 months ago
parent
commit
5d0ecb5283
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/custom/objects/tool/TransformControls.js

+ 3 - 3
src/custom/objects/tool/TransformControls.js

@@ -1206,13 +1206,13 @@ var TransformControlsGizmo = function (options) {
 
 	var pickerRotate = {
 		X: [    //xzw 由原先全弧度改为一半弧度(Math.PI),否则在背面也会hover到
-			[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1, 0.06, 4, 24, rotFullCircle ? Math.PI*2 : Math.PI   ), matInvisible ), [ 0, 0, 0 ], [ 0, - Math.PI / 2, - Math.PI / 2 ]],
+			[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1, 0.06, 4, 24, options.rotFullCircle ? Math.PI*2 : Math.PI ), matInvisible ), [ 0, 0, 0 ], [ 0, - Math.PI / 2, - Math.PI / 2 ]],
 		],
 		Y: [
-			[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1, 0.06, 4, 24, rotFullCircle ? Math.PI*2 : Math.PI ), matInvisible ), [ 0, 0, 0 ], [ Math.PI / 2, 0, 0 ]],
+			[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1, 0.06, 4, 24, options.rotFullCircle ? Math.PI*2 : Math.PI ), matInvisible ), [ 0, 0, 0 ], [ Math.PI / 2, 0, 0 ]],
 		],
 		Z: [
-			[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1, 0.06, 4, 24, rotFullCircle ? Math.PI*2 : Math.PI  ), matInvisible ), [ 0, 0, 0 ], [ 0, 0, - Math.PI / 2 ]],
+			[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1, 0.06, 4, 24, options.rotFullCircle ? Math.PI*2 : Math.PI ), matInvisible ), [ 0, 0, 0 ], [ 0, 0, - Math.PI / 2 ]],
 		],
 		E: [
 			[ new THREE.Mesh( new THREE.TorusBufferGeometry( 1.25, 0.06, 2, 24 ), matInvisible ) ]