From: Mikko Rasa Date: Thu, 16 Sep 2010 19:41:21 +0000 (+0000) Subject: Copy position and rotation when duplicating tracks X-Git-Url: https://git.tdb.fi/?a=commitdiff_plain;h=01f584baa4f168bc14b1f2d22fcb6e893de83b8b;p=r2c2.git Copy position and rotation when duplicating tracks --- diff --git a/source/designer/manipulator.cpp b/source/designer/manipulator.cpp index dfcdd2c..029bbba 100644 --- a/source/designer/manipulator.cpp +++ b/source/designer/manipulator.cpp @@ -68,6 +68,8 @@ void Manipulator::duplicate() for(vector::iterator i=tracks.begin(); i!=tracks.end(); ++i) { Track *track = new Track(*designer.get_layout(), i->track->get_type()); + track->set_position(i->track->get_position()); + track->set_rotation(i->track->get_rotation()); new_tracks.push_back(track); }