From d2752f629ea15286920954229c3994eeb3eaba4d Mon Sep 17 00:00:00 2001 From: Vincent Fretin Date: Tue, 18 Jun 2024 13:20:09 +0200 Subject: [PATCH] only keep y gizmo for rotation --- src/editor/lib/TransformControls.js | 68 ++++++++++++++--------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/src/editor/lib/TransformControls.js b/src/editor/lib/TransformControls.js index 8b47939cf..d3fa9c0ff 100644 --- a/src/editor/lib/TransformControls.js +++ b/src/editor/lib/TransformControls.js @@ -438,14 +438,14 @@ }; this.handleGizmos = { - X: [ - [ - new THREE.Line( - new CircleGeometry(1, 'x', 0.5), - new GizmoLineMaterial({ color: 0xff0000 }) - ) - ] - ], + // X: [ + // [ + // new THREE.Line( + // new CircleGeometry(1, 'x', 0.5), + // new GizmoLineMaterial({ color: 0xff0000 }) + // ) + // ] + // ], Y: [ [ @@ -456,32 +456,32 @@ ] ], - Z: [ - [ - new THREE.Line( - new CircleGeometry(1, 'z', 0.5), - new GizmoLineMaterial({ color: 0x0000ff }) - ) - ] - ], - - E: [ - [ - new THREE.Line( - new CircleGeometry(1.25, 'z', 1), - new GizmoLineMaterial({ color: 0xcccc00 }) - ) - ] - ], - - XYZE: [ - [ - new THREE.Line( - new CircleGeometry(1, 'z', 1), - new GizmoLineMaterial({ color: 0x787878 }) - ) - ] - ] + // Z: [ + // [ + // new THREE.Line( + // new CircleGeometry(1, 'z', 0.5), + // new GizmoLineMaterial({ color: 0x0000ff }) + // ) + // ] + // ], + + // E: [ + // [ + // new THREE.Line( + // new CircleGeometry(1.25, 'z', 1), + // new GizmoLineMaterial({ color: 0xcccc00 }) + // ) + // ] + // ], + + // XYZE: [ + // [ + // new THREE.Line( + // new CircleGeometry(1, 'z', 1), + // new GizmoLineMaterial({ color: 0x787878 }) + // ) + // ] + // ] }; this.pickerGizmos = {