X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.cpp;h=5340318063338d9ba6f439df5c831c6be76abd21;hb=f4ffb776aa0d4f51c058d27fb0f51449c05302c3;hp=32857961d9ecc54134bb4f352c7136783f3098a6;hpb=47341c72a70e6cf9d8e963705a50197bbc20a87d;p=r2c2.git diff --git a/source/3d/track.cpp b/source/3d/track.cpp index 3285796..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" @@ -23,18 +24,20 @@ Track3D::Track3D(Layout3D &l, Track &t): layout(l), track(t), type(layout.get_catalogue().get_track(track.get_type())), - color(1, 1, 1) + 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));