Revision: 2149
http://synfig.svn.sourceforge.net/synfig/?rev=2149&view=rev
Author: dooglus
Date: 2008-11-04 20:11:06 +0000 (Tue, 04 Nov 2008)
Log Message:
-----------
Revision 1150 stopped synfig-core/trunk/examples/star.sifz from rendering
correctly. This fixes it.
Revision Links:
--------------
http://synfig.svn.sourceforge.net/synfig/?rev=1150&view=rev
Modified Paths:
--------------
synfig-core/trunk/src/synfig/valuenode_bline.cpp
Modified: synfig-core/trunk/src/synfig/valuenode_bline.cpp
===================================================================
--- synfig-core/trunk/src/synfig/valuenode_bline.cpp 2008-11-04 14:45:34 UTC
(rev 2148)
+++ synfig-core/trunk/src/synfig/valuenode_bline.cpp 2008-11-04 20:11:06 UTC
(rev 2149)
@@ -79,7 +79,12 @@
affine_combo<Angle,float> ang_combo;
Real mag(mag_combo(a.mag(),b.mag(),c));
- Angle ang(ang_combo(Angle::tan(a[1],a[0]),Angle::tan(b[1],b[0]),c));
+ Angle angle_a(Angle::tan(a[1],a[0]));
+ Angle angle_b(Angle::tan(b[1],b[0]));
+ float diff = Angle::deg(angle_b - angle_a).get();
+ if (diff < -180) angle_b += Angle::deg(360);
+ else if (diff > 180) angle_a += Angle::deg(360);
+ Angle ang(ang_combo(angle_a, angle_b, c));
return Point( mag*Angle::cos(ang).get(),mag*Angle::sin(ang).get() );
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl