From ae7342ebe76686403e7e97de4d6ed6b8ad49e885 Mon Sep 17 00:00:00 2001 From: James Turner Date: Sat, 14 Aug 2010 19:50:22 +0100 Subject: [PATCH] Fix issue identified by AndersG - don't load 2.5D panels for MP aircraft, only the main aircraft. --- src/Model/model_panel.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Model/model_panel.cxx b/src/Model/model_panel.cxx index 8a2ec9b2f..a316243c1 100644 --- a/src/Model/model_panel.cxx +++ b/src/Model/model_panel.cxx @@ -30,7 +30,8 @@ using namespace simgear; osg::Node * fgLoad3DModelPanel(const std::string &path, SGPropertyNode *prop_root) { - osg::Node* node = SGModelLib::loadModel(path, prop_root); + bool loadPanels = true; + osg::Node* node = SGModelLib::loadModel(path, prop_root, NULL, loadPanels); if (node) node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT); return node;