From ef81de1b1b98b998c129054244336d6cde24ef9e Mon Sep 17 00:00:00 2001 From: Pieter Hulshoff Date: Sun, 12 Jun 2016 09:11:42 +0200 Subject: [PATCH] Idle animations should not be interrupted if another type of animation is requested that is not programmed for this component. --- RetroFE/Source/Graphics/Component/Component.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RetroFE/Source/Graphics/Component/Component.cpp b/RetroFE/Source/Graphics/Component/Component.cpp index 3d243b2..5f9518a 100644 --- a/RetroFE/Source/Graphics/Component/Component.cpp +++ b/RetroFE/Source/Graphics/Component/Component.cpp @@ -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;