浏览代码

shallow copy animations array (#26416)

Luis Fonsi VEVO 2 年之前
父节点
当前提交
c6273adf45
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/core/Object3D.js

+ 1 - 1
src/core/Object3D.js

@@ -945,7 +945,7 @@ class Object3D extends EventDispatcher {
 		this.frustumCulled = source.frustumCulled;
 		this.frustumCulled = source.frustumCulled;
 		this.renderOrder = source.renderOrder;
 		this.renderOrder = source.renderOrder;
 
 
-		this.animations = source.animations;
+		this.animations = source.animations.slice();
 
 
 		this.userData = JSON.parse( JSON.stringify( source.userData ) );
 		this.userData = JSON.parse( JSON.stringify( source.userData ) );