]> git.mxchange.org Git - flightgear.git/blobdiff - src/Model/modelmgr.cxx
Change FGSteam into a proper subsystem rather than a collection of
[flightgear.git] / src / Model / modelmgr.cxx
index 5d7f2afd44e18de53812bce3a278c63ef3509a1c..ce15e6078c6b1a85ad659e98ca077d071cc92803 100644 (file)
@@ -36,7 +36,7 @@ FGModelMgr::init ()
     SG_LOG(SG_GENERAL, SG_INFO,
           "Adding model " << node->getStringValue("name", "[unnamed]"));
     Instance * instance = new Instance;
-    FG3DModel * model = new FG3DModel;
+    FGModelPlacement * model = new FGModelPlacement;
     instance->model = model;
     model->init(node->getStringValue("path", "Models/Geometry/glider.ac"));
 
@@ -102,7 +102,7 @@ FGModelMgr::update (double dt)
 {
   for (unsigned int i = 0; i < _instances.size(); i++) {
     Instance * instance = _instances[i];
-    FG3DModel * model = instance->model;
+    FGModelPlacement * model = instance->model;
 
                                // Optionally set position from properties
     if (instance->lon_deg_node != 0)