Added check against node.getName() into isNodeEmpty(Node&) method so that nodes

with names arn't assumed to be empty.
This commit is contained in:
Robert Osfield 2005-03-17 10:24:22 +00:00
parent 8545fa5198
commit 6904696573

View File

@ -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;
}