Author: Carlos Lopez <[email protected]>
Date:   Mon Apr 11 21:46:14 2011 +0200

Fix bad render when first or last tangent from bline is zero.

---

 .../src/modules/mod_geometry/advanced_outline.cpp  |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp 
b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
index 408c3cc..0e4ed16 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -277,7 +277,10 @@ Advanced_Outline::sync()
                                // .. Do tips. If withpoint is interpolate it 
doesn't do
                                // anything.
                                Real bezier_ipos(bline_to_bezier(ipos, 
biter_pos, bezier_size));
-                               add_tip(side_a, side_b, curve(bezier_ipos), 
deriv(bezier_ipos).norm(), *wnext);
+                               Real q(bezier_ipos);
+                               q=q>CUSP_TANGENT_ADJUST?q:CUSP_TANGENT_ADJUST;
+                               
q=q>1.0-CUSP_TANGENT_ADJUST?1-0-CUSP_TANGENT_ADJUST:q;
+                               add_tip(side_a, side_b, curve(bezier_ipos), 
deriv(q).norm(), *wnext);
                                // Update wplist iterators
                                witer=wnext;
                                wnext++;


------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to