mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-04-08 12:16:03 +02: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user