Skip to content

Commit

Permalink
improve how reset work for animationgroups
Browse files Browse the repository at this point in the history
  • Loading branch information
deltakosh committed Aug 11, 2020
1 parent 3f04573 commit 55602a3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Animations/animationGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,6 +427,9 @@ export class AnimationGroup implements IDisposable {
*/
public reset(): AnimationGroup {
if (!this._isStarted) {
this.play();
this.goToFrame(0);
this.stop();
return this;
}

Expand Down

0 comments on commit 55602a3

Please sign in to comment.