mirror of
https://github.com/FunKey-Project/RetroFE.git
synced 2026-06-06 19:06:48 +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_ != "")
|
if(animationRequested_ && animationRequestedType_ != "")
|
||||||
{
|
{
|
||||||
Animation *newTweens = tweens_->getAnimation( animationRequestedType_, menuIndex_ );
|
Animation *newTweens = tweens_->getAnimation( animationRequestedType_, menuIndex_ );
|
||||||
if (newTweens)
|
if (newTweens && newTweens->size() > 0)
|
||||||
{
|
{
|
||||||
animationType_ = animationRequestedType_;
|
animationType_ = animationRequestedType_;
|
||||||
currentTweens_ = newTweens;
|
currentTweens_ = newTweens;
|
||||||
|
|||||||
Reference in New Issue
Block a user