From: <ro...@sy...> - 2011-11-23 21:00:46
|
Author: Carlos Lopez <gen...@gm...> Date: Wed Nov 23 21:57:49 2011 +0100 Fix remaining render artifacts not fully fixed on the previous commit. --- .../src/modules/mod_geometry/advanced_outline.cpp | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp index fab03f1..5c66dff 100644 --- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp +++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp @@ -654,9 +654,9 @@ 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)); Real q(bezier_ipos); - if(q==0.0) + if(q < EPSILON) unitary=iter_t.norm(); - else if(q==1.0) + else if(q > (1.0-EPSILON)) unitary=next_t.norm(); else unitary=deriv(q).norm(); @@ -848,9 +848,9 @@ Advanced_Outline::sync() hipos=wnext_pos; // ... add interpolation for the last step Real q(bline_to_bezier(ipos, biter_pos, bezier_size)); - if(q==0.0) + if(q<EPSILON) unitary=iter_t.norm(); - else if(q==1.0) + else if(q>(1.0-EPSILON)) unitary=next_t.norm(); else unitary=deriv(q).norm(); @@ -929,11 +929,11 @@ Advanced_Outline::sync() // Add interpolation Vector unitary; Real q(bline_to_bezier(ipos, biter_pos, bezier_size)); - if(q==0.0) - unitary=iter_t.norm(); - else if(q==1.0) - unitary=next_t.norm(); - else + //if(q==0.0) + //unitary=iter_t.norm(); + //else if(q==1.0) + //unitary=next_t.norm(); + //else unitary=deriv(q).norm(); const Vector d(unitary.perp()); const Vector p(curve(q)); |