]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/track.cpp
Move the fitting part of Manipulator::connect to a separate function
[r2c2.git] / source / 3d / track.cpp
index ade3d132bcef669759bff1c6796e14699a9ce177..49ef02e4ff06ae079968d5698c565b71e19f6f86 100644 (file)
@@ -29,13 +29,15 @@ Track3D::Track3D(Layout3D &l, Track &t):
        layout.add_track(*this);
        layout.get_scene().add(*this);
 
-       const vector<Endpoint> &type_eps = track.get_type().get_endpoints();
+       const vector<TrackType::Endpoint> &type_eps = track.get_type().get_endpoints();
        for(unsigned i=0; i<type_eps.size(); ++i)
                endpoints.push_back(new Endpoint3D(*this, i));
 }
 
 Track3D::~Track3D()
 {
+       delete path;
+
        layout.remove_track(*this);
        layout.get_scene().remove(*this);