From d769a9936bbdc2a9eb2c3b70d0b33acf5cf42e46 Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 10 Oct 2004 18:43:11 +0000 Subject: [PATCH] Frederic: Include FGPanelNode in the display list generation process. --- simgear/scene/model/model.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/simgear/scene/model/model.cxx b/simgear/scene/model/model.cxx index 645b6fc4..f8740adc 100644 --- a/simgear/scene/model/model.cxx +++ b/simgear/scene/model/model.cxx @@ -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; } -- 2.39.5