X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fduck.cpp;h=aa1a350318f70d83186a2b4b875ddbfc2dc862fe;hb=df278fa75371d2787391b98ee2ece48b307c8278;hp=58b0c646a35f8155bdc96cdbd1cd8f516d1581c0;hpb=7ff75c570ed5406415f709008f5fc4c8788b5f7a;p=synfig.git diff --git a/synfig-studio/trunk/src/gtkmm/duck.cpp b/synfig-studio/trunk/src/gtkmm/duck.cpp index 58b0c64..aa1a350 100644 --- a/synfig-studio/trunk/src/gtkmm/duck.cpp +++ b/synfig-studio/trunk/src/gtkmm/duck.cpp @@ -74,7 +74,8 @@ Duck::Duck(): editable(false), radius_(false), tangent_(false), - hover_(false) + hover_(false), + ignore_(false) { duck_count++; _DuckCounter::counter++; } Duck::Duck(const synfig::Point &point): @@ -87,7 +88,8 @@ Duck::Duck(const synfig::Point &point): editable(false), radius_(false), tangent_(false), - hover_(false) + hover_(false), + ignore_(false) { duck_count++; _DuckCounter::counter++;} Duck::Duck(const synfig::Point &point,const synfig::Point &origin): @@ -99,7 +101,8 @@ Duck::Duck(const synfig::Point &point,const synfig::Point &origin): editable(false), radius_(true), tangent_(false), - hover_(false) + hover_(false), + ignore_(false) { duck_count++; _DuckCounter::counter++;} Duck::~Duck() { duck_count--; _DuckCounter::counter--;} @@ -202,11 +205,11 @@ Duck::set_sub_trans_point(const synfig::Point &x) Angle change = get_point().angle() - old_angle; while (change < Angle::deg(-180)) change += Angle::deg(360); while (change > Angle::deg(180)) change -= Angle::deg(360); - int old_quarters = round_to_int(Angle::deg(rotations).get()/90); + int old_halves = round_to_int(Angle::deg(rotations).get()/180); rotations += change; - int new_quarters = round_to_int(Angle::deg(rotations).get()/90); - if (old_quarters != new_quarters) - synfig::info("rotation: %.2f turns", new_quarters/4.0); + int new_halves = round_to_int(Angle::deg(rotations).get()/180); + if (old_halves != new_halves) + synfig::info("rotation: %.2f turns", new_halves/2.0); } else set_point((x-get_sub_trans_origin())/get_scalar());