]> git.tdb.fi Git - r2c2.git/blobdiff - source/designer/trackwrap.cpp
Reverse pointer y coordinate in manipulator
[r2c2.git] / source / designer / trackwrap.cpp
index b5070757efad2697e2ddc513934b33f172bc18d7..5e21ddc326b39e354c4a3ddf5e7c59e39aee3932 100644 (file)
@@ -1,6 +1,6 @@
 /* $Id$
 
-This file is part of the MSP Märklin suite
+This file is part of R²C²
 Copyright © 2010  Mikkosoft Productions, Mikko Rasa
 Distributed under the GPL
 */
@@ -14,7 +14,7 @@ Distributed under the GPL
 
 using namespace std;
 using namespace Msp;
-using namespace Marklin;
+using namespace R2C2;
 
 TrackWrap::TrackWrap(Designer &d, Selection &s):
        designer(d),
@@ -23,6 +23,12 @@ TrackWrap::TrackWrap(Designer &d, Selection &s):
        selection.signal_changed.connect(sigc::mem_fun(this, &TrackWrap::selection_changed));
 }
 
+TrackWrap::~TrackWrap()
+{
+       for(map<const TrackType *, GL::Mesh *>::iterator i=meshes.begin(); i!=meshes.end(); ++i)
+               delete i->second;
+}
+
 void TrackWrap::render(const GL::Tag &) const
 {
        for(list<Wrap>::const_iterator i=wraps.begin(); i!=wraps.end(); ++i)