static bool writeChildren( osgDB::OutputStream& os, const osg::ProxyNode& node ) { unsigned int size=node.getNumFileNames(), dynamicLoadedSize=0; for ( unsigned int i=0; i<size; ++i ) { if ( !node.getFileName(i).empty() ) dynamicLoadedSize++; } unsigned int realSize = size-dynamicLoadedSize; os << realSize; if ( realSize>0 ) { os << os.BEGIN_BRACKET << std::endl; for ( unsigned int i=0; i<size; ++i ) { if ( !node.getFileName(i).empty() ) continue; if ( i<node.getNumChildren() ) os << node.getChild(i); } os << os.END_BRACKET; } os << std::endl; return true; }
void daeWriter::apply( osg::ProxyNode &node ) { OSG_WARN << "ProxyNode. Missing " << node.getNumChildren() << " children" << std::endl; }
// _children static bool checkChildren( const osg::ProxyNode& node ) { return node.getNumChildren()>0; }