X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fpath.cpp;h=1b4dba54fe03ee75674d3d4b649ea211a8692552;hb=b1cfc4fbf0d12c60bbe4b9c014a33c658554e7d7;hp=f9e51f4974a790efa0fb51e141ee7256efebbd85;hpb=5116fff210cdc3f0fbdae13046cc60450aad5e8f;p=r2c2.git diff --git a/source/3d/path.cpp b/source/3d/path.cpp index f9e51f4..1b4dba5 100644 --- a/source/3d/path.cpp +++ b/source/3d/path.cpp @@ -59,7 +59,7 @@ void Path3D::set_color(const GL::Color &c) void Path3D::set_layer(float l) { - z_offs = l*layout.get_layout().get_catalogue().get_gauge()*0.01; + z_offs = l*track.get_track().get_type().get_gauge()*0.01; } void Path3D::path_changed(unsigned p)