X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.cpp;h=5340318063338d9ba6f439df5c831c6be76abd21;hb=f4ffb776aa0d4f51c058d27fb0f51449c05302c3;hp=3241852f1ed32c606ad8c0dd07ea6a97e34684db;hpb=a861c2729a356173059177a0b800de2b31c9b49c;p=r2c2.git diff --git a/source/3d/track.cpp b/source/3d/track.cpp index 3241852..5340318 100644 --- a/source/3d/track.cpp +++ b/source/3d/track.cpp @@ -11,6 +11,7 @@ Distributed under the GPL #include "libmarklin/tracktype.h" #include "endpoint.h" #include "layout.h" +#include "path.h" #include "track.h" #include "tracktype.h" @@ -22,18 +23,21 @@ namespace Marklin { Track3D::Track3D(Layout3D &l, Track &t): layout(l), track(t), - type(layout.get_catalogue().get_track(track.get_type())) + type(layout.get_catalogue().get_track(track.get_type())), + path(new Path3D(*this)) { layout.add_track(*this); layout.get_scene().add(*this); - const vector &type_eps = track.get_type().get_endpoints(); + const vector &type_eps = track.get_type().get_endpoints(); for(unsigned i=0; i(this));