Bläddra i källkod

Fix cloning of animations of instances

David Catuhe 5 år sedan
förälder
incheckning
a50b5e026c
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      src/Meshes/instancedMesh.ts

+ 1 - 1
src/Meshes/instancedMesh.ts

@@ -53,7 +53,7 @@ export class InstancedMesh extends AbstractMesh {
             this.rotationQuaternion = source.rotationQuaternion.clone();
         }
 
-        this.animations = source.animations;
+        this.animations = Array.from(source.animations);
         for (var range of source.getAnimationRanges()) {
             if (range != null) {
                 this.createAnimationRange(range.name, range.from, range.to);