diff --git a/Tween.h b/Tween.h index e60ca71..9e7fe50 100644 --- a/Tween.h +++ b/Tween.h @@ -156,7 +156,7 @@ public: void stop() { isPlayingF = false; current = to; - triggerLastTick = true; + triggerLastTick = false; } bool isPlaying() const { @@ -270,6 +270,14 @@ class AnimationChain : public TweenListener { currentUserPtr = nullptr; } + bool isStaticAnim() { + if(!isChainPlaying()) return true; + const Anim& anim = animations[currentIndex]; + float from = anim.fromFunc ? anim.fromFunc() : anim.from; + float to = anim.to; + return from == to; + } + //------------------------------------------------------------------ // STATE //------------------------------------------------------------------