浏览代码

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 );