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.
This commit is contained in:
Robert Osfield
2007-09-11 13:47:06 +00:00
parent 9819217136
commit 66cc306f18
2 changed files with 4 additions and 3 deletions

View File

@@ -51,7 +51,8 @@ bool Group_writeLocalData(const Object& obj, Output& fw)
{
const Group& group = static_cast<const Group&>(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<group.getNumChildren();++i)
{
fw.writeObject(*group.getChild(i));

View File

@@ -81,8 +81,8 @@ bool Object_writeLocalData(const Object& obj, Output& fw)
switch(obj.getDataVariance())
{
case(osg::Object::STATIC): fw.indent() << "DataVariance STATIC" << std::endl;break;
case(osg::Object::UNSPECIFIED): fw.indent() << "DataVariance UNSPECIFIED" << std::endl;break;
default: fw.indent() << "DataVariance DYNAMIC" << std::endl;break;
case(osg::Object::DYNAMIC): fw.indent() << "DataVariance DYNAMIC" << std::endl;break;
case(osg::Object::UNSPECIFIED): break; // fw.indent() << "DataVariance UNSPECIFIED" << std::endl;break;
}
if (!obj.getName().empty()) fw.indent() << "name "<<fw.wrapString(obj.getName())<< std::endl;