Added disabling of the traversal of the Timeout in update when the timout is not displayed and disabled traversal by the SlideEventHandler.
This commit is contained in:
@@ -290,10 +290,22 @@ void Timeout::traverse(osg::NodeVisitor& nv)
|
||||
}
|
||||
|
||||
}
|
||||
else if (nv.getVisitorType()==osg::NodeVisitor::UPDATE_VISITOR)
|
||||
{
|
||||
if (_displayTimeout) Transform::traverse(nv);
|
||||
}
|
||||
else
|
||||
{
|
||||
OSG_NOTICE<<"Timout::traverse() "<<nv.className()<<std::endl;
|
||||
Transform::traverse(nv);
|
||||
if (strcmp(nv.className(),"FindOperatorsVisitor")==0)
|
||||
{
|
||||
OSG_NOTICE<<"Timout::traverse() "<<nv.className()<<", ignoring traversal"<<std::endl;
|
||||
}
|
||||
else
|
||||
{
|
||||
Transform::traverse(nv);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user