ソースを参照

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.
Luis Fonsi VEVO 5 年 前
コミット
cfeaec5378
1 ファイル変更1 行追加0 行削除
  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 );