projects
/
synfig.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Draw in the complete outline of a selected polygon if it is 'looped'. This allows...
[synfig.git]
/
synfig-studio
/
trunk
/
src
/
gtkmm
/
duck.cpp
diff --git
a/synfig-studio/trunk/src/gtkmm/duck.cpp
b/synfig-studio/trunk/src/gtkmm/duck.cpp
index
aa1a350
..
d682025
100644
(file)
--- a/
synfig-studio/trunk/src/gtkmm/duck.cpp
+++ b/
synfig-studio/trunk/src/gtkmm/duck.cpp
@@
-208,7
+208,9
@@
Duck::set_sub_trans_point(const synfig::Point &x)
int old_halves = round_to_int(Angle::deg(rotations).get()/180);
rotations += change;
int new_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)
+ 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);
}
else
synfig::info("rotation: %.2f turns", new_halves/2.0);
}
else