Modified Files:
simgear/scene/model/SGReaderWriterXML.cxx
= dynamic_cast<const SGReaderWriterXMLOptions*>(options);
string fg_root;
- SGPropertyNode *prop_root=0;
+ SGSharedPtr<SGPropertyNode> prop_root;
osg::Node *(*load_panel)(SGPropertyNode *)=0;
SGModelData *model_data=0;
SGPath externalTexturePath;
load_panel = xmlOptions->getLoadPanel();
model_data = xmlOptions->getModelData();
}
+ if (!prop_root) {
+ prop_root = new SGPropertyNode;
+ }
fg_root=osgDB::Registry::instance()->getDataFilePathList().front();