]> git.mxchange.org Git - flightgear.git/blobdiff - src/ATC/trafficcontrol.cxx
New materials.xml format
[flightgear.git] / src / ATC / trafficcontrol.cxx
index 65d60ae529dca95546b4223598560420792df6b0..907818cfb27422e87ad7e59005b013cb06118468 100644 (file)
@@ -1409,9 +1409,9 @@ void FGStartupController::render(bool visible)
                     //osg::Node *custom_obj;
                     SGMaterial *mat;
                     if (segment->hasBlock(now)) {
-                        mat = matlib->find("UnidirectionalTaperRed");
+                        mat = matlib->find("UnidirectionalTaperRed", center);
                     } else {
-                        mat = matlib->find("UnidirectionalTaperGreen");
+                        mat = matlib->find("UnidirectionalTaperGreen", center);
                     }
                     if (mat)
                         geode->setEffect(mat->get_effect());
@@ -1487,9 +1487,9 @@ void FGStartupController::render(bool visible)
                         //osg::Node *custom_obj;
                         SGMaterial *mat;
                         if (segment->hasBlock(now)) {
-                            mat = matlib->find("UnidirectionalTaperRed");
+                            mat = matlib->find("UnidirectionalTaperRed", segCenter);
                         } else {
-                            mat = matlib->find("UnidirectionalTaperGreen");
+                            mat = matlib->find("UnidirectionalTaperGreen", segCenter);
                         }
                         if (mat)
                             geode->setEffect(mat->get_effect());