clean all action from s_fadeInAnimates, s_fadeOutAnimates, s_runningAnimates!!!!

This commit is contained in:
lvlong 2015-03-31 14:26:40 +08:00
parent df95ab8f1a
commit ab2c773c5c
1 changed files with 3 additions and 6 deletions

View File

@ -433,11 +433,8 @@ void Animate3D::removeFromMap()
if (_target)
{
Sprite3D* sprite = static_cast<Sprite3D*>(_target);
if (_state == Animate3D::Animate3DState::FadeIn)
s_fadeInAnimates.erase(sprite);
else if (_state == Animate3D::Animate3DState::FadeOut)
s_fadeOutAnimates.erase(sprite);
else
s_runningAnimates.erase(sprite);
}
}