X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fdesigner%2Fmanipulator.cpp;h=798e99f7ebef1c95a47ede24de2daf043480aa6d;hb=ae0600f7c3df5b6ef46992b1423888dd0e9a5026;hp=c07003e4eae3f13617029ee23f02f1ce31ee1e69;hpb=1d735b80482317fd930eb47ca255ab9f1f120a7d;p=r2c2.git diff --git a/source/designer/manipulator.cpp b/source/designer/manipulator.cpp index c07003e..798e99f 100644 --- a/source/designer/manipulator.cpp +++ b/source/designer/manipulator.cpp @@ -1,3 +1,10 @@ +/* $Id$ + +This file is part of the MSP Märklin suite +Copyright © 2006-2008 Mikkosoft Productions, Mikko Rasa +Distributed under the GPL +*/ + #include #include #include @@ -214,7 +221,7 @@ void Manipulator::cancel() (*i)->check_slope(); angle=0; - //snapped=0; + wrap_rot=0; signal_done.emit(false); } @@ -227,7 +234,7 @@ void Manipulator::button_press(int, int, float, float, unsigned btn) { mode=NONE; update_wrap(); - //snapped=0; + angle=0; for(set::iterator i=neighbors.begin(); i!=neighbors.end(); ++i) for(vector::iterator j=tracks.begin(); j!=tracks.end(); ++j) @@ -245,6 +252,9 @@ void Manipulator::button_press(int, int, float, float, unsigned btn) j->track->snap_to(**i, true); } + for(vector::iterator i=tracks.begin(); i!=tracks.end(); ++i) + i->rot=i->track->get_rotation(); + update_neighbors(); signal_done.emit(true);