Parcourir la source

shallow copy animations array (#26416)

Luis Fonsi VEVO il y a 2 ans
Parent
commit
c6273adf45
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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 ) );