From acb13618841e7cecba6f4c989b7670909f8ac235 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 7 Mar 2008 19:44:30 +0000 Subject: [PATCH] When linking a set of ducks to positions on a bline, link all the 'amounts' and all the 'loops' together. git-svn-id: http://svn.voria.com/code@1874 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/synfigapp/actions/valuedescblinelink.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/synfig-studio/trunk/src/synfigapp/actions/valuedescblinelink.cpp b/synfig-studio/trunk/src/synfigapp/actions/valuedescblinelink.cpp index eea3514..1c21040 100644 --- a/synfig-studio/trunk/src/synfigapp/actions/valuedescblinelink.cpp +++ b/synfig-studio/trunk/src/synfigapp/actions/valuedescblinelink.cpp @@ -171,6 +171,9 @@ Action::ValueDescBLineLink::prepare() LinkableValueNode::Handle calculated_value_node; Action::Handle action; + ValueNode::Handle loop_value_node(ValueNode_Const::create(loop)); + ValueNode::Handle amount_value_node(ValueNode_Const::create(amount)); + for (std::list::iterator iter = value_desc_list.begin(); iter != value_desc_list.end(); ++iter) { ValueDesc& value_desc(*iter); @@ -250,9 +253,9 @@ Action::ValueDescBLineLink::prepare() else continue; - calculated_value_node->set_link("bline", bline_value_node); - calculated_value_node->set_link("loop", ValueNode_Const::create(loop)); - calculated_value_node->set_link("amount", ValueNode_Const::create(amount)); + calculated_value_node->set_link("bline", bline_value_node ); + calculated_value_node->set_link("loop", loop_value_node ); + calculated_value_node->set_link("amount", amount_value_node); action->set_param("canvas", get_canvas()); action->set_param("canvas_interface", get_canvas_interface()); -- 2.7.4