Author: Carlos Lopez <[email protected]>
Date:   Wed Aug 31 19:58:43 2011 +0200

When set link a new value node to a child of a linkable value node, transfer 
the bline and the homoegenous to the new valuenode only if it is not already a 
bline linked.
This means that link to valuenodes that are bline linked forces one of them to 
loose the bline reference.

---

 synfig-core/src/synfig/valuenode.cpp |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/synfig-core/src/synfig/valuenode.cpp 
b/synfig-core/src/synfig/valuenode.cpp
index 78463f1..9d91fe0 100644
--- a/synfig-core/src/synfig/valuenode.cpp
+++ b/synfig-core/src/synfig/valuenode.cpp
@@ -386,6 +386,13 @@ LinkableValueNode::set_link(int i,ValueNode::Handle x)
                }
                add_child(x.get());
 
+               // Do the bline stuff:
+               // If previous was a value node and it had a bline and the
+               // new valuenode is not bline linked then
+               // pass the bline and the homogeneous to the new value node.
+               if(previous && previous->get_bline() && !x->get_bline())
+                       x->set_bline(previous->get_bline(), 
previous->get_homogeneous());
+
                if(!x->is_exported() && get_parent_canvas())
                {
                        x->set_parent_canvas(get_parent_canvas());


------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Synfig-devl mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synfig-devl

Reply via email to