in fact, while i was writing last reply, i found one solution :
void CB_AnimationPonctuelle::operator() (osg::Node *node, osg::NodeVisitor *nv){
if (getPause()) {
traverse(node, nv);
return;
}
osg::AnimationPathCallback::operator()(node,nv); // méthode
originale (de la classe de base)
if (getAnimationTime()>_duree_animation)
setPause(true);
}
it's maybe not efficient (surely less than mask) but it work.
one souldn't forget traverse to let update visitor go through children ...
Thank you!
Cheers,
vincent
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=36476#36476
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org