From: Carlos Lopez Date: Sat, 21 Aug 2010 11:02:52 +0000 (+0200) Subject: Fix value node constant bug that did not keep static values as static after being... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=04046e375e337bcd6afd05e13170f7a8a1189607;p=synfig.git Fix value node constant bug that did not keep static values as static after being modified. --- diff --git a/synfig-studio/src/synfigapp/actions/valuedescset.cpp b/synfig-studio/src/synfigapp/actions/valuedescset.cpp index 8ba4276..35f6d26 100644 --- a/synfig-studio/src/synfigapp/actions/valuedescset.cpp +++ b/synfig-studio/src/synfigapp/actions/valuedescset.cpp @@ -535,7 +535,8 @@ Action::ValueDescSet::prepare() if(ValueNode_Const::Handle::cast_dynamic(value_desc.get_value_node())) { Action::Handle action(ValueNodeConstSet::create()); - + synfig::ValueNode_Const::Handle localvaluenode(ValueNode_Const::Handle::cast_dynamic(value_desc.get_value_node())); + value.set_static(localvaluenode->get_static()); action->set_param("canvas",get_canvas()); action->set_param("canvas_interface",get_canvas_interface()); action->set_param("value_node",value_desc.get_value_node());