Update babylon.animatable.ts
@@ -86,6 +86,11 @@
var isRunning = animation.animate(delay - this._localDelayOffset, this.fromFrame, this.toFrame, this.loopAnimation, this.speedRatio);
running = running || isRunning;
}
+ if (!running) {
+ // Remove from active animatables
+ var index = this._scene._activeAnimatables.indexOf(this);
+ this._scene._activeAnimatables.splice(index, 1);
+ }
if (!running && this.onAnimationEnd) {
this.onAnimationEnd();
@@ -94,4 +99,4 @@
return running;
-}
+}