Modified Files:

model.cxx: Reset the database path past the whole model is loaded
This commit is contained in:
frohlich
2006-11-12 07:23:42 +00:00
parent cefa9fcd75
commit 7a859061fd

View File

@@ -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;
}