]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/model.cxx
Change FGSteam into a proper subsystem rather than a collection of
[flightgear.git] / src / Model / model.cxx
index a61b23199ec300ea5917ab5a4bdfea8a07347f83..64621ea0c67429af8df04b4b0b33b99a99a261db 100644 (file)
@@ -26,6 +26,7 @@
 #include <Scenery/scenery.hxx>
 
 #include "model.hxx"
+#include "panelnode.hxx"
 
 
 \f
@@ -244,6 +245,14 @@ FG3DModel::init (const string &path)
     }
   }
 
+                                // Load panels
+  vector<SGPropertyNode_ptr> panel_nodes = props.getChildren("panel");
+  for (i = 0; i < panel_nodes.size(); i++) {
+    printf("Reading a panel in model.cxx\n");
+    FGPanelNode * panel = new FGPanelNode(panel_nodes[i]);
+    _model->addKid(panel);
+  }
+
                                // Load sub-models
   vector<SGPropertyNode_ptr> model_nodes = props.getChildren("model");
   for (i = 0; i < model_nodes.size(); i++) {