瀏覽代碼

improve how reset work for animationgroups

David `Deltakosh` Catuhe 5 年之前
父節點
當前提交
55602a3cb9
共有 1 個文件被更改,包括 3 次插入0 次删除
  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 {
         if (!this._isStarted) {
+            this.play();
+            this.goToFrame(0);
+            this.stop();
             return this;
         }