Browse Source

improve how reset work for animationgroups

David `Deltakosh` Catuhe 5 years ago
parent
commit
55602a3cb9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/Animations/animationGroup.ts

+ 3 - 0
src/Animations/animationGroup.ts

@@ -427,6 +427,9 @@ export class AnimationGroup implements IDisposable {
      */
      */
     public reset(): AnimationGroup {
     public reset(): AnimationGroup {
         if (!this._isStarted) {
         if (!this._isStarted) {
+            this.play();
+            this.goToFrame(0);
+            this.stop();
             return this;
             return this;
         }
         }