Partially fix 1677632: draw tool can extend looped blines. Don't allow the draw...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 9 Mar 2007 22:03:57 +0000 (22:03 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 9 Mar 2007 22:03:57 +0000 (22:03 +0000)
git-svn-id: http://svn.voria.com/code@279 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/state_draw.cpp

index fc668c5..6f8d806 100644 (file)
@@ -725,7 +725,9 @@ StateDraw_Context::new_bline(std::list<synfig::BLinePoint> 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<synfig::BLinePoint> 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)
                                {