Fix value node constant bug that did not keep static values as static after being...
authorCarlos Lopez <genetita@gmail.com>
Sat, 21 Aug 2010 11:02:52 +0000 (13:02 +0200)
committerCarlos Lopez <genetita@gmail.com>
Sat, 21 Aug 2010 11:02:52 +0000 (13:02 +0200)
synfig-studio/src/synfigapp/actions/valuedescset.cpp

index 8ba4276..35f6d26 100644 (file)
@@ -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());