]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/catalogue.cpp
Move gauge to TrackAppearance
[r2c2.git] / source / 3d / catalogue.cpp
index 2f932d62f1c6b6133c49958494b6b8e599ed2059..d84e2d0d5b1535709c2b924d028f0897fcaf75b4 100644 (file)
@@ -60,7 +60,7 @@ void Catalogue3D::build_endpoint_mesh(const TrackAppearance &appearance)
        const Vector &rail_min = rail_profile.get_min_coords();
        const Vector &rail_max = rail_profile.get_max_coords();
 
-       float gauge = catalogue.get_gauge();
+       float gauge = appearance.get_gauge();
 
        float width = max(max(-ballast_min.x, ballast_max.x)*2, gauge+(rail_max.x-rail_min.x)*2)+0.004;
        float height = ballast_max.y-ballast_min.y+rail_max.y-rail_min.y+0.01;