Frederic: Include FGPanelNode in the display list generation process.
This commit is contained in:
@@ -271,10 +271,6 @@ sgLoad3DModel( const string &fg_root, const string &path,
|
||||
throw sg_exception("Failed to load 3D model");
|
||||
}
|
||||
|
||||
if ( model != 0 ) {
|
||||
makeDList( model );
|
||||
}
|
||||
|
||||
// Set up the alignment node
|
||||
ssgTransform * alignmainmodel = new ssgTransform;
|
||||
if ( load_panel == 0 )
|
||||
@@ -336,6 +332,10 @@ sgLoad3DModel( const string &fg_root, const string &path,
|
||||
sim_time_sec);
|
||||
}
|
||||
|
||||
if ( model != 0 ) {
|
||||
makeDList( model );
|
||||
}
|
||||
|
||||
return alignmainmodel;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user