model.cxx: Reset the database path past the whole model is loaded
model->setUpdateCallback(new SGSwitchUpdateCallback(sgReadCondition(prop_root, cond)));
}
- // restore old path list
- osgDB::setDataFilePathList(pathList);
-
if ( load_panel ) {
// Load panels
vector<SGPropertyNode_ptr> panel_nodes = props.getChildren("panel");
sim_time_sec, texturepath, ignore_branches);
}
+ // restore old path list
+ osgDB::setDataFilePathList(pathList);
+
return alignmainmodel;
}