From 4a614feb74e3853af7d1de1b4a797d47aad11742 Mon Sep 17 00:00:00 2001 From: dooglus Date: Tue, 15 Jan 2008 14:57:58 +0000 Subject: [PATCH] When saving a Composite ValueNode, use mnemonic names for the sub-parameters rather than c1, c2, etc. git-svn-id: http://svn.voria.com/code@1380 1f10aa63-cdf2-0310-b900-c93c546f37ac --- .../trunk/src/synfig/valuenode_composite.cpp | 59 ++++++++++++++++++++-- 1 file changed, 56 insertions(+), 3 deletions(-) diff --git a/synfig-core/trunk/src/synfig/valuenode_composite.cpp b/synfig-core/trunk/src/synfig/valuenode_composite.cpp index 43c3fa0..e10999a 100644 --- a/synfig-core/trunk/src/synfig/valuenode_composite.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_composite.cpp @@ -295,6 +295,10 @@ ValueNode_Composite::link_local_name(int i)const return _("Tangent 2"); default: + assert(0); + // notice that Composite counts from 1 and Radial Composite counts + // from 0! we need to keep it like that to correctly load old + // animations, but let's not save "c%d" format link names in future return etl::strprintf(_("C%d"),i+1); } } @@ -305,7 +309,53 @@ ValueNode_Composite::link_name(int i)const { assert(i>=0 && i