From: dooglus Date: Tue, 19 Feb 2008 18:51:23 +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=7cac384dc4dd35cc31e3cd16064747267e576b98;p=synfig.git Use ValueNode_DynamicList::set_member_canvas() to set the canvas for each blinepoint in newly drawn shapes. git-svn-id: http://svn.voria.com/code@1762 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/state_draw.cpp b/synfig-studio/trunk/src/gtkmm/state_draw.cpp index 6122064..646afa7 100644 --- a/synfig-studio/trunk/src/gtkmm/state_draw.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_draw.cpp @@ -936,6 +936,11 @@ StateDraw_Context::new_bline(std::list bline,bool loop_bline trans_bline.push_back(bline_point); } value_node=ValueNode_BLine::create(synfig::ValueBase(trans_bline,loop_bline_flag)); + + Canvas::Handle canvas(get_canvas_view()->get_canvas()); + Layer::Handle layer(get_canvas_view()->get_selection_manager()->get_selected_layer()); + if (layer) canvas=layer->get_canvas(); + value_node->set_member_canvas(canvas); } Smach::event_result result;