Author: Carlos Lopez <genet...@gmail.com>
Date:   Mon Oct 10 20:13:38 2011 +0200

When adding widthpoint position ducks, don't expect that Link to BLine fix the 
position out of the boundaries of the curve. Let the widthpoint does by itself.
So the loop sub parameter of the BLineCalcVertex value node is always 'false' 
since the widthpoint position is already inside a drawable place.

---

 synfig-studio/src/gui/duckmatic.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/synfig-studio/src/gui/duckmatic.cpp 
b/synfig-studio/src/gui/duckmatic.cpp
index 32a7cb7..cdb4615 100644
--- a/synfig-studio/src/gui/duckmatic.cpp
+++ b/synfig-studio/src/gui/duckmatic.cpp
@@ -2168,8 +2168,8 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& 
value_desc,etl::handle<Canva
                                        // optionally
                                        ValueNode_BLineCalcVertex::LooseHandle 
bline_calc_vertex(ValueNode_BLineCalcVertex::create(Vector(0,0)));
                                        bline_calc_vertex->set_link("bline", 
bline);
-                                       bline_calc_vertex->set_link("loop", 
ValueNode_Const::create(value_node->get_loop()));
-                                       bline_calc_vertex->set_link("amount", 
ValueNode_Const::create(width_point.get_position()));
+                                       bline_calc_vertex->set_link("loop", 
ValueNode_Const::create(false);
+                                       bline_calc_vertex->set_link("amount", 
ValueNode_Const::create(width_point.get_norm_position(value_node->get_loop())));
                                        
bline_calc_vertex->set_link("homogeneous", 
ValueNode_Const::create(homogeneous));
                                        
pduck->set_point((*bline_calc_vertex)(get_time()));
                                        // hack end


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
Synfig-devl mailing list
Synfig-devl@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to