From: Carlos Lopez Date: Wed, 19 May 2010 17:59:45 +0000 (+0200) Subject: Comment out unused debug info to make console quieter. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=9b473cb34831124039c8b023761c517659ea50ab;p=synfig.git Comment out unused debug info to make console quieter. --- diff --git a/synfig-studio/src/gtkmm/duck.cpp b/synfig-studio/src/gtkmm/duck.cpp index 14ea8d0..da571f6 100644 --- a/synfig-studio/src/gtkmm/duck.cpp +++ b/synfig-studio/src/gtkmm/duck.cpp @@ -217,13 +217,13 @@ Duck::set_sub_trans_point(const synfig::Point &x, const synfig::Time &time) 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_halves = round_to_int(Angle::deg(rotations).get()/180); + //int old_halves = round_to_int(Angle::deg(rotations).get()/180); rotations += change; - int new_halves = round_to_int(Angle::deg(rotations).get()/180); - if (old_halves != new_halves && + //int new_halves = round_to_int(Angle::deg(rotations).get()/180); + /*if (old_halves != new_halves && (new_halves > 1 || new_halves < -1 || old_halves > 1 || old_halves < -1)) - synfig::info("rotation: %.2f turns", new_halves/2.0); + synfig::info("rotation: %.2f turns", new_halves/2.0)*/; } else if(get_type() == Duck::TYPE_VERTEX || get_type() == Duck::TYPE_POSITION) { set_point((x-get_sub_trans_origin())/get_scalar()); @@ -262,13 +262,13 @@ 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_halves = round_to_int(Angle::deg(rotations).get()/180); + //int old_halves = round_to_int(Angle::deg(rotations).get()/180); rotations += change; - int new_halves = round_to_int(Angle::deg(rotations).get()/180); - if (old_halves != new_halves && + //int new_halves = round_to_int(Angle::deg(rotations).get()/180); + /*if (old_halves != new_halves && (new_halves > 1 || new_halves < -1 || old_halves > 1 || old_halves < -1)) - synfig::info("rotation: %.2f turns", new_halves/2.0); + synfig::info("rotation: %.2f turns", new_halves/2.0);*/ } else set_point((x-get_sub_trans_origin())/get_scalar()); }