Use ValueNode_DynamicList::set_member_canvas() to set the canvas for each blinepoint...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 19 Feb 2008 18:51:46 +0000 (18:51 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 19 Feb 2008 18:51:46 +0000 (18:51 +0000)
git-svn-id: http://svn.voria.com/code@1764 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/synfigapp/canvasinterface.cpp

index 8bf6e89..6619719 100644 (file)
@@ -41,6 +41,7 @@
 #include <synfig/valuenode_reference.h>
 #include <synfig/valuenode_twotone.h>
 #include <synfig/valuenode_stripes.h>
+#include <synfig/valuenode_bline.h>
 
 #include <synfig/waypoint.h>
 #include <synfig/loadcanvas.h>
@@ -249,7 +250,10 @@ CanvasInterface::add_layer_to(synfig::String name, synfig::Canvas::Handle canvas
                                                if (iter2->get_type() != ValueBase::TYPE_BLINEPOINT)
                                                        break;
                                        if (iter2 == list.end())
+                                       {
                                                value_node=LinkableValueNode::create("bline",iter->second);
+                                               ValueNode_BLine::Handle::cast_dynamic(value_node)->set_member_canvas(canvas);
+                                       }
                                }
 
                                if (!value_node)