From 183639eb2598814b26793a6cb25dfe75dec4bc84 Mon Sep 17 00:00:00 2001 From: SuperLlama88888 <116475184+SuperLlama88888@users.noreply.github.com> Date: Fri, 18 Oct 2024 13:40:16 +1100 Subject: [PATCH] Fix hold_on_last_frame in animations --- lib/Animations/Animation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Animations/Animation.ts b/lib/Animations/Animation.ts index 2855356..e66c67c 100644 --- a/lib/Animations/Animation.ts +++ b/lib/Animations/Animation.ts @@ -168,7 +168,7 @@ export class Animation { } if (this.currentTime > this.animationData.animation_length) { - if (this.animationData.loop) this.loop() + if (this.animationData.loop && this.animationData.loop !== "hold_on_last_frame") this.loop() else this.pause() }