From: dooglus Date: Tue, 19 Feb 2008 18:51:46 +0000 (+0000) Subject: Use ValueNode_DynamicList::set_member_canvas() to set the canvas for each blinepoint... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=6064c8b90dca08162df16620032b7fd8e395936a;p=synfig.git Use ValueNode_DynamicList::set_member_canvas() to set the canvas for each blinepoint in shapes with blines added via the "New Layer" menu. git-svn-id: http://svn.voria.com/code@1764 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp index 8bf6e89..6619719 100644 --- a/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp +++ b/synfig-studio/trunk/src/synfigapp/canvasinterface.cpp @@ -41,6 +41,7 @@ #include #include #include +#include #include #include @@ -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)