]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/model_panel.cxx
Prepare and implement reinit methods for instruments
[flightgear.git] / src / Model / model_panel.cxx
index b18d1f164187ac894b6f88df1badf6c0e704ee8f..ac2ab88b1c3bbd9194f2db62a32e079586bf4b22 100644 (file)
@@ -14,7 +14,6 @@
 #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"
@@ -28,9 +27,10 @@ using namespace simgear;
 ////////////////////////////////////////////////////////////////////////
 
 osg::Node *
-fgLoad3DModelPanel(const 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)
         node->setNodeMask(~SG_NODEMASK_TERRAIN_BIT);
     return node;