Author: Carlos Lopez <[email protected]>
Date:   Sun Aug 28 19:54:47 2011 +0200

When setting the bline for a bline linked parameter, make the bline its child, 
in order to update the parameter when the bline is modified.

---

 synfig-core/src/synfig/valuenode.cpp |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/synfig-core/src/synfig/valuenode.cpp 
b/synfig-core/src/synfig/valuenode.cpp
index 712cb9b..5561972 100644
--- a/synfig-core/src/synfig/valuenode.cpp
+++ b/synfig-core/src/synfig/valuenode.cpp
@@ -306,6 +306,7 @@ void
 ValueNode::set_bline(ValueNode::Handle x)
 {
        bline_=x;
+       add_child(x.get());
 }
 
 /// LinkableValueNode Members
@@ -389,9 +390,10 @@ LinkableValueNode::set_bline(ValueNode::Handle x)
        for(iter=vocab.begin();iter!=vocab.end();iter++, i++)
        {
                if(iter->is_bline_linked())
+               {
                        get_link(i)->set_bline(x);
-               else
-                       get_link(i)->set_bline(NULL);
+                       get_link(i)->add_child(x.get());
+               }
        }
        ValueNode::set_bline(x);
 }


------------------------------------------------------------------------------
EMC VNX: the world's simplest storage, starting under $10K
The only unified storage solution that offers unified management 
Up to 160% more powerful than alternatives and 25% more efficient. 
Guaranteed. http://p.sf.net/sfu/emc-vnx-dev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to