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:
@@ -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));
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user