From cfeaec5378b8dc9551c85d0d5f2e180b32777b90 Mon Sep 17 00:00:00 2001 From: Luis Fonsi VEVO Date: Fri, 3 Jul 2020 16:28:07 -0500 Subject: [PATCH] clone euler rotation order when cloning/copyng object3d Not sure if there is a technical reason behind why the euler rotation order isn't cloned by Object3D.copy(), but hey now it is. --- src/core/Object3D.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/Object3D.js b/src/core/Object3D.js index da39ff157de73b..717c6dd18b77e6 100644 --- a/src/core/Object3D.js +++ b/src/core/Object3D.js @@ -823,6 +823,7 @@ Object3D.prototype = Object.assign( Object.create( EventDispatcher.prototype ), this.up.copy( source.up ); this.position.copy( source.position ); + this.rotation.order = source.rotation.order; this.quaternion.copy( source.quaternion ); this.scale.copy( source.scale );