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:
parent
8545fa5198
commit
6904696573
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user