From 66cc306f18f6546fe41325411115c85ffb322f3e Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 11 Sep 2007 13:47:06 +0000 Subject: [PATCH] Removed the output num_children from Group .osg output and removed the output of "DataVaraince UNSPECIFIED" as this is redundent considering the default value is UNSPECIFIED. --- src/osgPlugins/osg/Group.cpp | 3 ++- src/osgPlugins/osg/Object.cpp | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/osgPlugins/osg/Group.cpp b/src/osgPlugins/osg/Group.cpp index 602e6d1a0..5f9e99b31 100644 --- a/src/osgPlugins/osg/Group.cpp +++ b/src/osgPlugins/osg/Group.cpp @@ -51,7 +51,8 @@ bool Group_writeLocalData(const Object& obj, Output& fw) { const Group& group = static_cast(obj); - fw.indent() << "num_children " << group.getNumChildren() << std::endl; + if (group.getNumChildren()!=0) fw.indent() << "num_children " << group.getNumChildren() << std::endl; + for(unsigned int i=0;i