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:
parent
f6d092957f
commit
91e9679362
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user