Author: Carlos Lopez <[email protected]>
Date:   Wed Apr 13 18:59:38 2011 +0200

Fix bug of bad render of start (end) tip when the first (last) widthpoint
has side type before (after) set to interpolate and it is at 0.0 (1.0).
User expects the tip to have the same type of the layer's start (end) tip.

---

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

diff --git a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp 
b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
index 0e4ed16..e960855 100644
--- a/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
+++ b/synfig-core/src/modules/mod_geometry/advanced_outline.cpp
@@ -248,6 +248,18 @@ Advanced_Outline::sync()
                        witer=wnext;
                const vector<WidthPoint>::const_iterator wend(wplist.end());
                Real ipos(0.0);
+               // Fix bug of bad render of start (end) tip when the first
+               // (last) widthpoint has side type before (after) set to
+               // interpolate and it is at 0.0 (1.0). User expects the tip to
+               // have the same type of the layer's start (end) tip.
+               if(!blineloop)
+               {
+                       if(wnext->get_norm_position()==0.0 && 
wnext->get_side_type_before()==WidthPoint::TYPE_INTERPOLATE)
+                               wnext->set_side_type_before(start_tip_);
+                       const vector<WidthPoint>::const_iterator 
last=--wplist.end();
+                       if(last->get_norm_position()==1.0 && 
last->get_side_type_after()==WidthPoint::TYPE_INTERPOLATE)
+                               wnext->set_side_type_after(end_tip_);
+               }
                do
                {
                        Vector iter_t(biter->get_tangent2());


------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload Consolidation

_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to