Skip to content

Commit 1d71298

Browse files
authored
TransformControls: Fix gizmo transform. (#21732)
1 parent fc4a73f commit 1d71298

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/js/controls/TransformControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@
958958

959959
updateMatrixWorld( force ) {
960960

961-
const space = this.mode === 'scale' ? this.space : 'local'; // scale always oriented to local rotation
961+
const space = this.mode === 'scale' ? 'local' : this.space; // scale always oriented to local rotation
962962

963963
const quaternion = space === 'local' ? this.worldQuaternion : _identityQuaternion; // Show only gizmos for current transform mode
964964

examples/jsm/controls/TransformControls.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1175,7 +1175,7 @@ class TransformControlsGizmo extends Object3D {
11751175

11761176
updateMatrixWorld( force ) {
11771177

1178-
const space = ( this.mode === 'scale' ) ? this.space : 'local'; // scale always oriented to local rotation
1178+
const space = ( this.mode === 'scale' ) ? 'local' : this.space; // scale always oriented to local rotation
11791179

11801180
const quaternion = ( space === 'local' ) ? this.worldQuaternion : _identityQuaternion;
11811181

0 commit comments

Comments
 (0)