Procházet zdrojové kódy

check animations all stop bug.

KK před 9 roky
rodič
revize
3f6a040706
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      src/Animations/babylon.animatable.ts

+ 2 - 2
src/Animations/babylon.animatable.ts

@@ -119,7 +119,7 @@
                         numberOfAnimationsStopped++;
                         numberOfAnimationsStopped++;
                     }
                     }
 
 
-                    if (animations.length == numberOfAnimationsStopped) {
+                    if (animations.length == 0) {
                         this._scene._activeAnimatables.splice(idx, 1);
                         this._scene._activeAnimatables.splice(idx, 1);
 
 
                         if (this.onAnimationEnd) {
                         if (this.onAnimationEnd) {
@@ -191,4 +191,4 @@
             return running;
             return running;
         }
         }
     }
     }
-} 
+}