1
0
Fork 0

Fix issue identified by AndersG - don't load 2.5D panels for MP aircraft, only the main aircraft.

This commit is contained in:
James Turner 2010-08-14 19:50:22 +01:00
parent a363da9274
commit ae7342ebe7

View file

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