Changed the handling of unkown nodes on write so that the code now ignores the non supported nodes allows the overall write to continue.

This commit is contained in:
Robert Osfield
2011-02-26 15:52:51 +00:00
parent a7fd352b40
commit d88a6af8c1

View File

@@ -1410,7 +1410,10 @@ void DataOutputStream::writeNode(const osg::Node* node)
((ive::LightPointNode*)(node))->write(this);
}
else
throwException("Unknown node in Group::write()");
{
OSG_WARN<<"Unknown node in Group::write(), className()="<<node->className()<<std::endl;
// throwException(std::string("Unknown node in Group::write(), className()=")+node->className());
}
if (_verboseOutput) std::cout<<"read/writeNode() ["<<id<<"]"<<std::endl;
}