|
@@ -2653,6 +2653,14 @@ module BABYLON {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Resets the last animation time frame.
|
|
|
|
+ * Useful to override when animations start running when loading a scene for the first time.
|
|
|
|
+ */
|
|
|
|
+ public resetLastAnimationTimeFrame(): void {
|
|
|
|
+ this._animationTimeLast = BABYLON.Tools.Now;
|
|
|
|
+ }
|
|
|
|
+
|
|
private _animate(): void {
|
|
private _animate(): void {
|
|
if (!this.animationsEnabled || this._activeAnimatables.length === 0) {
|
|
if (!this.animationsEnabled || this._activeAnimatables.length === 0) {
|
|
return;
|
|
return;
|