Update Tween.h

This commit is contained in:
2025-05-22 13:38:16 +03:00
parent cfc67b8138
commit 18e03b1f26

10
Tween.h
View File

@ -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
//------------------------------------------------------------------