Przeglądaj źródła

Merge pull request #19789 from luisfonsivevo/patch-1

clone euler rotation order when cloning/copying object3d
Mr.doob 5 lat temu
rodzic
commit
d6fcf4af0c
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/core/Object3D.js

+ 1 - 0
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 );