From 88718743362fc20d89e4c52cbc694ae99cd41884 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 19 Feb 2008 18:52:00 +0000 Subject: [PATCH] Be quieter about tangent rotation - only report half turns, not quarter turns. git-svn-id: http://svn.voria.com/code@1765 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/duck.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/duck.cpp b/synfig-studio/trunk/src/gtkmm/duck.cpp index eca6112..aa1a350 100644 --- a/synfig-studio/trunk/src/gtkmm/duck.cpp +++ b/synfig-studio/trunk/src/gtkmm/duck.cpp @@ -205,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()); -- 2.7.4