Module: synfig/synfig Branch: genete_width_outline Commit: f0d5e89eddf260e8c725e90249a36e4d1448c89f URL: http://synfig.git.sourceforge.net/git/gitweb.cgi?p=synfig/synfig;a=commit;h=f0d5e89eddf260e8c725e90249a36e4d1448c89f
Author: Carlos Lopez <[email protected]> Date: Fri Jan 21 18:17:43 2011 +0100 When inserting new width points by user action use the internal create_list_entry method. Initially it is always created at position 0.0 --- synfig-core/src/synfig/valuenode_wplist.cpp | 8 ++++++++ synfig-core/src/synfig/valuenode_wplist.h | 1 + 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/synfig-core/src/synfig/valuenode_wplist.cpp b/synfig-core/src/synfig/valuenode_wplist.cpp index 8309efa..9ae3f7b 100644 --- a/synfig-core/src/synfig/valuenode_wplist.cpp +++ b/synfig-core/src/synfig/valuenode_wplist.cpp @@ -155,9 +155,17 @@ ValueNode_WPList::create_list_entry(Real position, Time time) // Note: before and after interpolations are INTERPOLATE by default. // not need to set it up here. ret.value_node=ValueNode_Composite::create(wpoint); + ret.value_node->set_parent_canvas(get_parent_canvas()); return ret; } +ValueNode_WPList::ListEntry +ValueNode_WPList::create_list_entry(int index, Time /*time*/, Real /*origin*/) +{ + // Initially all the width points are created at 0.0 + // TODO: take the decision on what to call on valuenodedynamiclistinsert action + return create_list_entry(0.0); +} ValueBase ValueNode_WPList::operator()(Time t)const diff --git a/synfig-core/src/synfig/valuenode_wplist.h b/synfig-core/src/synfig/valuenode_wplist.h index ff704fe..b99320a 100644 --- a/synfig-core/src/synfig/valuenode_wplist.h +++ b/synfig-core/src/synfig/valuenode_wplist.h @@ -73,6 +73,7 @@ public: //! \param time the time when inserted in animation mode //! \return the new List Entry virtual ListEntry create_list_entry(Real position, Time time=0); + virtual ListEntry create_list_entry(int index, Time time=0, Real origin=0); //! Finds a fully on width point at given time and after the given position //! \param position the position where to start to seek from //! \param time the time when things are evaluated ------------------------------------------------------------------------------ Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d _______________________________________________ Synfig-devl mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/synfig-devl
