Addd a setNodeMaskOverride(0xffffffff) to cope with models that are hiding

subgraphs that still need to be accounted for when optimizer.
This commit is contained in:
Robert Osfield 2006-08-10 06:43:09 +00:00
parent f6d092957f
commit 91e9679362

View File

@ -36,7 +36,10 @@ class OSGUTIL_EXPORT BaseOptimizerVisitor : public osg::NodeVisitor
BaseOptimizerVisitor(Optimizer* optimizer, unsigned int operation): BaseOptimizerVisitor(Optimizer* optimizer, unsigned int operation):
osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN), osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN),
_optimizer(optimizer), _optimizer(optimizer),
_operationType(operation) {} _operationType(operation)
{
setNodeMaskOverride(0xffffffff);
}
inline bool isOperationPermissibleForObject(const osg::StateSet* object) const; inline bool isOperationPermissibleForObject(const osg::StateSet* object) const;
inline bool isOperationPermissibleForObject(const osg::StateAttribute* object) const; inline bool isOperationPermissibleForObject(const osg::StateAttribute* object) const;