Fix issue identified by AndersG - don't load 2.5D panels for MP aircraft, only the main aircraft.
This commit is contained in:
parent
a363da9274
commit
ae7342ebe7
1 changed files with 2 additions and 1 deletions
|
@ -30,7 +30,8 @@ using namespace simgear;
|
||||||
osg::Node *
|
osg::Node *
|
||||||
fgLoad3DModelPanel(const std::string &path, SGPropertyNode *prop_root)
|
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)
|
if (node)
|
||||||
node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
|
node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
|
||||||
return node;
|
return node;
|
||||||
|
|
Loading…
Add table
Reference in a new issue