Added handling of false return

This commit is contained in:
Robert Osfield 2016-06-30 10:58:17 +01:00
parent e5c0297167
commit 8f071e055f

View File

@ -132,8 +132,10 @@ namespace osgDot {
osg::Node* child = node.getChild( i );
//handleNodeAndTraverse( *child );
int id2;
getOrCreateId( child, id2 );
handle( node, *child, id, id2 );
if (getOrCreateId( child, id2 ))
{
handle( node, *child, id, id2 );
}
}
}