We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec06e79 commit 94298efCopy full SHA for 94298ef
1 file changed
src/gameobjects/components/AnimationState.js
@@ -1485,6 +1485,8 @@ var AnimationState = new Class({
1485
// And only do more if we're skipping frames and have time left
1486
if (this.isPlaying && this._pendingStop === 0 && this.skipMissedFrames && this.accumulator > this.nextTick)
1487
{
1488
+ var safetyNet = 0;
1489
+
1490
do
1491
1492
if (this.forward)
@@ -1496,7 +1498,9 @@ var AnimationState = new Class({
1496
1498
anim.previousFrame(this);
1497
1499
}
1500
- } while (this.accumulator > this.nextTick);
1501
+ safetyNet++;
1502
1503
+ } while (this.accumulator > this.nextTick && safetyNet < 60);
1504
1505
1506
},
0 commit comments