X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Ftrack.cpp;h=49ef02e4ff06ae079968d5698c565b71e19f6f86;hb=9b536a7197c424c3fa3809063c56da324b56dab2;hp=32857961d9ecc54134bb4f352c7136783f3098a6;hpb=47341c72a70e6cf9d8e963705a50197bbc20a87d;p=r2c2.git diff --git a/source/3d/track.cpp b/source/3d/track.cpp index 3285796..49ef02e 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));