]> git.tdb.fi Git - r2c2.git/commitdiff
Copy position and rotation when duplicating tracks
authorMikko Rasa <tdb@tdb.fi>
Thu, 16 Sep 2010 19:41:21 +0000 (19:41 +0000)
committerMikko Rasa <tdb@tdb.fi>
Thu, 16 Sep 2010 19:41:21 +0000 (19:41 +0000)
source/designer/manipulator.cpp

index dfcdd2cccbdc859a08c4cf6326aba090bf2e1696..029bbbad8890eb74854c53721b9f661fa6bb9d5d 100644 (file)
@@ -68,6 +68,8 @@ void Manipulator::duplicate()
        for(vector<MTrack>::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);
        }