#include <simgear/props/props.hxx>
#include <simgear/scene/model/modellib.hxx>
#include <simgear/scene/util/SGNodeMasks.hxx>
-#include <simgear/math/SGMath.hxx>
#include "panelnode.hxx"
#include "model_panel.hxx"
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;