Просмотр исходного кода

check animations all stop bug.

KK 9 лет назад
Родитель
Сommit
3f6a040706
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      src/Animations/babylon.animatable.ts

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

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