]> git.tdb.fi Git - r2c2.git/blobdiff - source/libr2c2/catalogue.cpp
Allow custom objects for tracks
[r2c2.git] / source / libr2c2 / catalogue.cpp
index d2ee1447639fd459296168fb8c48bfe649f19a9a..51cad9a031a134ddc4107e7413f2d0b5da4b7a02 100644 (file)
@@ -96,8 +96,8 @@ void Catalogue::Loader::gauge(float g)
 {
        obj.gauge = g/1000;
        obj.path_profile = Profile();
-       obj.path_profile.append_point(Point(0.1*obj.gauge, 0));
-       obj.path_profile.append_point(Point(-0.1*obj.gauge, 0));
+       obj.path_profile.append_vertex(Point(0.1*obj.gauge, 0), false);
+       obj.path_profile.append_vertex(Point(-0.1*obj.gauge, 0), false);
 }
 
 void Catalogue::Loader::layout()