to the model's property root (/ai/models/multiplayer[*])
{
if ( !prop_root ) {
SG_LOG(SG_GENERAL, SG_ALERT, "prop_root NULL: " << path);
-
}
+
string fg_root=osgDB::Registry::instance()->getDataFilePathList().front();
osg::ref_ptr<osg::Node> model;
osg::ref_ptr<osg::Group> group;
} else {
model = new osg::Node;
}
+
+ SGPropertyNode *mp = props->getNode("multiplayer");
+ if (mp && prop_root && prop_root->getParent())
+ copyProperties(mp, prop_root);
}
osg::ref_ptr<osgDB::ReaderWriter::Options> options