未验证 提交 1d71298b 编写于 作者: M Michael Herzog 提交者: GitHub

TransformControls: Fix gizmo transform. (#21732)

上级 fc4a73f5
......@@ -958,7 +958,7 @@
updateMatrixWorld( force ) {
const space = this.mode === 'scale' ? this.space : 'local'; // scale always oriented to local rotation
const space = this.mode === 'scale' ? 'local' : this.space; // scale always oriented to local rotation
const quaternion = space === 'local' ? this.worldQuaternion : _identityQuaternion; // Show only gizmos for current transform mode
......
......@@ -1175,7 +1175,7 @@ class TransformControlsGizmo extends Object3D {
updateMatrixWorld( force ) {
const space = ( this.mode === 'scale' ) ? this.space : 'local'; // scale always oriented to local rotation
const space = ( this.mode === 'scale' ) ? 'local' : this.space; // scale always oriented to local rotation
const quaternion = ( space === 'local' ) ? this.worldQuaternion : _identityQuaternion;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册