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:
Pieter Hulshoff 2016-06-12 09:11:42 +02:00
parent 933e7e2fdd
commit ef81de1b1b

View File

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