From 41eed484c1393aab204ea661f903fba1ccdeb59a Mon Sep 17 00:00:00 2001 From: ehofman Date: Sun, 10 Oct 2004 19:38:46 +0000 Subject: [PATCH 1/1] Adding the panel was a step too far for Linux, causing a segfault. --- simgear/scene/model/model.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/simgear/scene/model/model.cxx b/simgear/scene/model/model.cxx index ddfff646..9ae4caae 100644 --- a/simgear/scene/model/model.cxx +++ b/simgear/scene/model/model.cxx @@ -271,6 +271,11 @@ sgLoad3DModel( const string &fg_root, const string &path, throw sg_exception("Failed to load 3D model"); } +#if PLIB_VERSION > 183 + if ( model != 0 ) { + makeDList( model ); + } +#endif // Set up the alignment node ssgTransform * alignmainmodel = new ssgTransform; if ( load_panel == 0 ) @@ -332,7 +337,7 @@ sgLoad3DModel( const string &fg_root, const string &path, sim_time_sec); } -#if PLIB_VERSION > 183 +#if 0 if ( model != 0 ) { makeDList( model ); } -- 2.39.2