Skip to content

Commit

Permalink
Merge pull request #650 from 3DStreet/transformcontrolschanges
Browse files Browse the repository at this point in the history
Only keep y gizmo for rotation
  • Loading branch information
kfarr authored Jun 18, 2024
2 parents 122f8c1 + d2752f6 commit 1df307e
Showing 1 changed file with 34 additions and 34 deletions.
68 changes: 34 additions & 34 deletions src/editor/lib/TransformControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
[
Expand All @@ -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 = {
Expand Down

0 comments on commit 1df307e

Please sign in to comment.