diff --git a/src/osgPlugins/dot/BaseDotVisitor.cpp b/src/osgPlugins/dot/BaseDotVisitor.cpp index f0ee16cf0..3aec31ac2 100644 --- a/src/osgPlugins/dot/BaseDotVisitor.cpp +++ b/src/osgPlugins/dot/BaseDotVisitor.cpp @@ -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 ); + } } }