From 91e96793625c3b36fcf5cc5cb3083eebe33aa87c Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 10 Aug 2006 06:43:09 +0000 Subject: [PATCH] Addd a setNodeMaskOverride(0xffffffff) to cope with models that are hiding subgraphs that still need to be accounted for when optimizer. --- include/osgUtil/Optimizer | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/osgUtil/Optimizer b/include/osgUtil/Optimizer index d7292a9bc..08a683912 100644 --- a/include/osgUtil/Optimizer +++ b/include/osgUtil/Optimizer @@ -36,7 +36,10 @@ class OSGUTIL_EXPORT BaseOptimizerVisitor : public osg::NodeVisitor BaseOptimizerVisitor(Optimizer* optimizer, unsigned int operation): osg::NodeVisitor(osg::NodeVisitor::TRAVERSE_ALL_CHILDREN), _optimizer(optimizer), - _operationType(operation) {} + _operationType(operation) + { + setNodeMaskOverride(0xffffffff); + } inline bool isOperationPermissibleForObject(const osg::StateSet* object) const; inline bool isOperationPermissibleForObject(const osg::StateAttribute* object) const;