Modified Files:
model.cxx: Reset the database path past the whole model is loaded
This commit is contained in:
@@ -680,9 +680,6 @@ sgLoad3DModel( const string &fg_root, const string &path,
|
||||
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");
|
||||
@@ -710,6 +707,9 @@ sgLoad3DModel( const string &fg_root, const string &path,
|
||||
sim_time_sec, texturepath, ignore_branches);
|
||||
}
|
||||
|
||||
// restore old path list
|
||||
osgDB::setDataFilePathList(pathList);
|
||||
|
||||
return alignmainmodel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user