|
@@ -205,9 +205,10 @@ export class Gizmo implements IDisposable {
|
|
|
} else {
|
|
|
this._attachedNode._worldMatrix.decompose(transform.scaling, this._tempQuaternion, transform.position);
|
|
|
}
|
|
|
- transform.rotation = this._tempQuaternion.toEulerAngles();
|
|
|
if (transform.rotationQuaternion) {
|
|
|
transform.rotationQuaternion.copyFrom(this._tempQuaternion);
|
|
|
+ } else {
|
|
|
+ transform.rotation = this._tempQuaternion.toEulerAngles();
|
|
|
}
|
|
|
} else if (this._attachedNode.getClassName() === "Bone") {
|
|
|
var bone = this._attachedNode as Bone;
|