From: dooglus Date: Fri, 9 Mar 2007 22:03:57 +0000 (+0000) Subject: Partially fix 1677632: draw tool can extend looped blines. Don't allow the draw... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d9a892b2c457b58ffad058eba55802265b2967fa;p=synfig.git Partially fix 1677632: draw tool can extend looped blines. Don't allow the draw tool to extend blines if they are already looped. git-svn-id: http://svn.voria.com/code@279 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 fc668c5..6f8d806 100644 --- a/synfig-studio/trunk/src/gtkmm/state_draw.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_draw.cpp @@ -725,7 +725,9 @@ StateDraw_Context::new_bline(std::list bline,bool loop_bline { value_node_bline=ValueNode_BLine::Handle::cast_dynamic(value_desc.get_parent_value_node()); } - if(value_node_bline) + + // don't extend looped blines + if(value_node_bline && !value_node_bline->get_loop()) { if(value_desc.get_index()==0) { @@ -772,7 +774,9 @@ StateDraw_Context::new_bline(std::list bline,bool loop_bline if(value_desc.parent_is_value_node()) value_node_bline=ValueNode_BLine::Handle::cast_dynamic(value_desc.get_parent_value_node()); - if(value_node_bline) + + // don't extend looped blines + if(value_node_bline && !value_node_bline->get_loop()) { if(value_desc.get_index()==0) {