Author: Carlos Lopez <[email protected]>
Date:   Sat Jul 23 10:58:41 2011 +0200

Place the width points considering the homogeneous option of the WPList. Render 
of the outline doesn't follow

---

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

diff --git a/synfig-studio/src/gui/duckmatic.cpp 
b/synfig-studio/src/gui/duckmatic.cpp
index 9e27591..87b7704 100644
--- a/synfig-studio/src/gui/duckmatic.cpp
+++ b/synfig-studio/src/gui/duckmatic.cpp
@@ -2155,6 +2155,7 @@ Duckmatic::add_to_ducks(const synfigapp::ValueDesc& 
value_desc,etl::handle<Canva
                                        bline_calc_vertex->set_link("bline", 
value_node->get_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("homogeneous", 
ValueNode_Const::create(value_node->get_homogeneous()));
                                        
pduck->set_point((*bline_calc_vertex)(get_time()));
                                        // hack end
                                        
pduck->set_guid(calc_duck_guid(wpoint_value_desc,transform_stack)^synfig::GUID::hasher(".wpoint"));
diff --git a/synfig-studio/src/synfigapp/actions/valuedescset.cpp 
b/synfig-studio/src/synfigapp/actions/valuedescset.cpp
index 5e763a3..b589cb0 100644
--- a/synfig-studio/src/synfigapp/actions/valuedescset.cpp
+++ b/synfig-studio/src/synfigapp/actions/valuedescset.cpp
@@ -559,6 +559,10 @@ Action::ValueDescSet::prepare()
                                        }
                                        else
                                                new_amount = 
synfig::find_closest_point((*bline)(time), value, radius, bline->get_loop());
+                                       if(wplist->get_homogeneous())
+                                       {
+                                               
new_amount=std_to_hom((*bline)(time), new_amount, wplist->get_loop(), 
bline->get_loop() );
+                                       }
                                        Action::Handle 
action(Action::create("ValueDescSet"));
                                        if(!action)
                                                throw Error(_("Unable to find 
action ValueDescSet (bug)"));


------------------------------------------------------------------------------
Magic Quadrant for Content-Aware Data Loss Prevention
Research study explores the data loss prevention market. Includes in-depth
analysis on the changes within the DLP market, and the criteria used to
evaluate the strengths and weaknesses of these DLP solutions.
http://www.accelacomm.com/jaw/sfnl/114/51385063/
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to