diff --git a/app/pages/PageEnigma/datastructures/clips/transform_clip.ts b/app/pages/PageEnigma/datastructures/clips/transform_clip.ts index 124a070bc1..1731e82bbb 100644 --- a/app/pages/PageEnigma/datastructures/clips/transform_clip.ts +++ b/app/pages/PageEnigma/datastructures/clips/transform_clip.ts @@ -133,10 +133,10 @@ export class TransformClip { if (this.keyframes.length > 0) { let first_pos = this.keyframes[0].position; let first_rot = this.keyframes[0].rotation; - let first_quat = new THREE.Quaternion().setFromEuler(new THREE.Euler(THREE.MathUtils.degToRad(first_rot.x), THREE.MathUtils.degToRad(first_rot.y), THREE.MathUtils.degToRad(first_rot.z))); + let first_quat = new THREE.Euler(THREE.MathUtils.degToRad(first_rot.x), THREE.MathUtils.degToRad(first_rot.y), THREE.MathUtils.degToRad(first_rot.z)); let first_scl = this.keyframes[0].scale; object.position.copy(first_pos); - object.rotation.set(first_quat.x, first_quat.y, first_quat.z); + object.rotation.copy(first_quat); object.scale.copy(first_scl); this.step_frame = 0; }