Author: Carlos Lopez <[email protected]>
Date:   Sun Oct 23 19:49:59 2011 +0200

Don't add first width point when doing complete loops

---

 synfig-studio/src/gui/states/state_draw.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/synfig-studio/src/gui/states/state_draw.cpp 
b/synfig-studio/src/gui/states/state_draw.cpp
index 8395589..abf3dbc 100644
--- a/synfig-studio/src/gui/states/state_draw.cpp
+++ b/synfig-studio/src/gui/states/state_draw.cpp
@@ -2124,11 +2124,15 @@ 
StateDraw_Context::extend_bline_from_begin(ValueNode_BLine::Handle value_node,st
                        // and insert each one in the wplist form the layer.
                        // Don't add the widthpoint with position equal to 1.0
                        // to avoid conflicts with the first of the existing 
wplist.
+                       // Don't add the widthpoint with position equal to 0.0 
if doing
+                       // complete loops.
                        //
                        for(witer=wplist.begin(); witer!=wplist.end();witer++)
                        {
                                if(witer->get_position() == 1.0)
                                        continue;
+                               if(complete_loop && witer->get_position() == 
0.0)
+                                       continue;
                                synfigapp::Action::Handle 
action(synfigapp::Action::create("ValueNodeDynamicListInsert"));
                                assert(action);
                                synfigapp::ValueDesc 
value_desc(wplist_value_node,0);


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to