mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-01-05 21:48:55 +01:00
Idle animations should not be interrupted if another type of animation is
requested that is not programmed for this component.
This commit is contained in:
parent
933e7e2fdd
commit
ef81de1b1b
@ -128,7 +128,7 @@ void Component::update(float dt)
|
||||
if(animationRequested_ && animationRequestedType_ != "")
|
||||
{
|
||||
Animation *newTweens = tweens_->getAnimation( animationRequestedType_, menuIndex_ );
|
||||
if (newTweens)
|
||||
if (newTweens && newTweens->size() > 0)
|
||||
{
|
||||
animationType_ = animationRequestedType_;
|
||||
currentTweens_ = newTweens;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user