From: Carlos Lopez Date: Fri, 20 Aug 2010 18:20:54 +0000 (+0200) Subject: Allow manipulate circle parameters in animation mode and do not create any waypoint... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=269177400845b4c95551b8854f4b63dfbb819dd7;p=synfig.git Allow manipulate circle parameters in animation mode and do not create any waypoint if the parameter is static. Pending save load canvas. Do it for the rest of layers --- diff --git a/synfig-studio/src/synfigapp/actions/valuedescset.cpp b/synfig-studio/src/synfigapp/actions/valuedescset.cpp index 83b2646..8ba4276 100644 --- a/synfig-studio/src/synfigapp/actions/valuedescset.cpp +++ b/synfig-studio/src/synfigapp/actions/valuedescset.cpp @@ -446,9 +446,17 @@ Action::ValueDescSet::prepare() } */ - + ValueBase local_value; + local_value.set_static(false); + if(!value_desc.is_value_node() || ValueNode_Const::Handle::cast_dynamic(value_desc.get_value_node())) + { + if(value_desc.is_value_node()) + local_value=ValueNode_Const::Handle::cast_dynamic(value_desc.get_value_node())->get_value(); + else + local_value=value_desc.get_value(); + } // If we are in animate editing mode - if(get_edit_mode()&MODE_ANIMATE) + if(get_edit_mode()&MODE_ANIMATE && !local_value.get_static()) { ValueNode_Animated::Handle& value_node(value_node_animated); @@ -549,7 +557,8 @@ Action::ValueDescSet::prepare() if(value_desc.parent_is_layer_param() && !value_desc.is_value_node()) { Action::Handle layer_param_set(LayerParamSet::create()); - + synfig::ValueBase localvalue(value_desc.get_value()); + value.set_static(local_value.get_static()); layer_param_set->set_param("canvas",get_canvas()); layer_param_set->set_param("canvas_interface",get_canvas_interface()); layer_param_set->set_param("layer",value_desc.get_layer());