mirror of https://github.com/axmolengine/axmol.git
clean all action from s_fadeInAnimates, s_fadeOutAnimates, s_runningAnimates!!!!
This commit is contained in:
parent
df95ab8f1a
commit
ab2c773c5c
|
@ -433,12 +433,9 @@ void Animate3D::removeFromMap()
|
||||||
if (_target)
|
if (_target)
|
||||||
{
|
{
|
||||||
Sprite3D* sprite = static_cast<Sprite3D*>(_target);
|
Sprite3D* sprite = static_cast<Sprite3D*>(_target);
|
||||||
if (_state == Animate3D::Animate3DState::FadeIn)
|
s_fadeInAnimates.erase(sprite);
|
||||||
s_fadeInAnimates.erase(sprite);
|
s_fadeOutAnimates.erase(sprite);
|
||||||
else if (_state == Animate3D::Animate3DState::FadeOut)
|
s_runningAnimates.erase(sprite);
|
||||||
s_fadeOutAnimates.erase(sprite);
|
|
||||||
else
|
|
||||||
s_runningAnimates.erase(sprite);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue