Przeglądaj źródła

shallow copy animations array (#26416)

Luis Fonsi VEVO 2 lat temu
rodzic
commit
c6273adf45
1 zmienionych plików z 1 dodań i 1 usunięć
  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.renderOrder = source.renderOrder;
 
-		this.animations = source.animations;
+		this.animations = source.animations.slice();
 
 		this.userData = JSON.parse( JSON.stringify( source.userData ) );