From: <ro...@sy...> - 2011-02-28 13:02:27
|
Author: Carlos Lopez <gen...@gm...> Date: Mon Feb 28 14:01:56 2011 +0100 Fix cusps render to use interpolated width. --- .../src/modules/mod_geometry/advanced_outline.cpp | 6 ++---- 1 files changed, 2 insertions(+), 4 deletions(-) diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp index 764fe8e..52a0fd6 100644 --- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp +++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp @@ -63,7 +63,7 @@ using namespace etl; #define SPIKE_AMOUNT (4) #define NO_LOOP_COOKIE synfig::Vector(84951305,7836658) #define EPSILON (0.000000001) -#define CUSP_TANGENT_ADJUST (0.025) +#define CUSP_TANGENT_ADJUST (0.0025) /* === G L O B A L S ======================================================= */ SYNFIG_LAYER_INIT(Advanced_Outline); SYNFIG_LAYER_SET_NAME(Advanced_Outline,"advanced_outline"); @@ -275,9 +275,7 @@ Advanced_Outline::sync() bwpoints.push_back(WidthPoint(bnext_pos, bnext_width)); } // width points - const float - biter_w((biter->get_width()*width_)*0.5f+expand_), - bnext_w((bnext->get_width()*width_)*0.5f+expand_); + const float biter_w(width_*0.5*biter_width); const derivative< hermite<Vector> > deriv(curve); //if (first) //first_tangent = deriv(CUSP_TANGENT_ADJUST); |