Is there a way to call removeAnimator from another animator? i`m getting a crash when trying to do that. it seems that there is a lack of "deletion" list for animators just as for scene nodes
Remove animator from animator
Remove animator from animator
Hello!
Is there a way to call removeAnimator from another animator? i`m getting a crash when trying to do that. it seems that there is a lack of "deletion" list for animators just as for scene nodes
Is there a way to call removeAnimator from another animator? i`m getting a crash when trying to do that. it seems that there is a lack of "deletion" list for animators just as for scene nodes
No, as far as I know. When I needed this I used an ugly hack like:
in include/ISceneNode.h and added "Unused" property to the ISceneNodeAnimator class.
Code: Select all
core::list<ISceneNodeAnimator*>::Iterator ait = Animators.begin();
for (; ait != Animators.end();) {
if (!(*ait)->Unused) {
(*ait)->animateNode(this, timeMs);
++ait;
}
else {
ISceneNodeAnimator *unused = *ait;
++ait;
removeAnimator(unused);
}
}