Explorar el Código

shallow copy animations array (#26416)

Luis Fonsi VEVO hace 2 años
padre
commit
c6273adf45
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 ) );