Author: Carlos Lopez <genet...@gmail.com>
Date:   Fri Aug 12 19:28:35 2011 +0200

Do not render last cusp when lies in the middle of an empty dash.

---

 .../src/modules/mod_geometry/advanced_outline.cpp  |    6 +++++-
 1 files changed, 5 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 88e08e9..63aba29 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -579,7 +579,11 @@ Advanced_Outline::sync()
                                        cwiter=--cwplist.end();
                                        if(blineloop && 
bnext->get_split_tangent_flag())
                                        {
-                                               add_cusp(side_a, side_b, 
bnext->get_vertex(), first_tangent, deriv(1.0-CUSP_TANGENT_ADJUST), 
expand_+width_*0.5*widthpoint_interpolate(*cwiter, *cwnext, ipos, smoothness_));
+                                               vector<WidthPoint>::iterator 
first(wplist.begin());
+                                               vector<WidthPoint>::iterator 
last(--wplist.end());
+                                               // when doing dashed outlines, 
the above rule is not always true
+                                               
if(first->get_side_type_before()==WidthPoint::TYPE_INTERPOLATE || 
last->get_side_type_after()==WidthPoint::TYPE_INTERPOLATE)
+                                                       add_cusp(side_a, 
side_b, bnext->get_vertex(), first_tangent, deriv(1.0-CUSP_TANGENT_ADJUST), 
expand_+width_*0.5*widthpoint_interpolate(*cwiter, *cwnext, ipos, smoothness_));
                                        }
                                        // ... and get out of the main loop.
                                        break;


------------------------------------------------------------------------------
FREE DOWNLOAD - uberSVN with Social Coding for Subversion.
Subversion made easy with a complete admin console. Easy 
to use, easy to manage, easy to install, easy to extend. 
Get a Free download of the new open ALM Subversion platform now.
http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to