Author: Carlos Lopez <genet...@gmail.com> Date: Sun Nov 13 14:02:43 2011 +0100
When editing several waypoints of widthpoint or blinepoint value nodes use the position and point value nodes instead. --- synfig-studio/src/gui/instance.cpp | 17 +++++++++++++++++ 1 files changed, 17 insertions(+), 0 deletions(-) diff --git a/synfig-studio/src/gui/instance.cpp b/synfig-studio/src/gui/instance.cpp index 9520409..8877ff7 100644 --- a/synfig-studio/src/gui/instance.cpp +++ b/synfig-studio/src/gui/instance.cpp @@ -1270,6 +1270,23 @@ edit_several_waypoints(etl::handle<CanvasView> canvas_view, std::list<synfigapp: continue; ValueNode_Animated::Handle value_node; + // Check if we are dealing with a BLinePoint or a WidthPoint value desc + // If so, then change the value desc to be the position or the point. + + if(value_desc.is_value_node() && value_desc.parent_is_linkable_value_node()) + { + synfig::ValueNode_Composite::Handle compo(synfig::ValueNode_Composite::Handle::cast_dynamic(value_desc.get_value_node())); + if(compo && compo->get_type() == ValueBase::TYPE_WIDTHPOINT) + { + value_desc=synfigapp::ValueDesc(compo, compo->get_link_index_from_name("position")); + //value_node=ValueNode_Animated::Handle::cast_dynamic(compo->get_link(compo->get_link_index_from_name("position"))); + } + if(compo && compo->get_type() == ValueBase::TYPE_BLINEPOINT) + { + value_desc=synfigapp::ValueDesc(compo, compo->get_link_index_from_name("point")); + //value_node=ValueNode_Animated::Handle::cast_dynamic(compo->get_link(compo->get_link_index_from_name("point"))); + } + } // If this value isn't a ValueNode_Animated, but // it is somewhat constant, then go ahead and convert ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl