diff --git a/src/osgUtil/Optimizer.cpp b/src/osgUtil/Optimizer.cpp index 5f18d94a8..8046f03ba 100644 --- a/src/osgUtil/Optimizer.cpp +++ b/src/osgUtil/Optimizer.cpp @@ -50,6 +50,7 @@ static bool isNodeEmpty(const osg::Node& node) if (node.getNumDescriptions()>0) return false; if (node.getStateSet()) return false; if (node.getNodeMask()!=0xffffffff) return false; + if (!node.getName().empty()) return false; return true; }