Fix the creation of regular polygon blines with the star layer. It was always creati...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 8 Apr 2008 02:16:23 +0000 (02:16 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 8 Apr 2008 02:16:23 +0000 (02:16 +0000)
git-svn-id: http://svn.voria.com/code@1987 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 63f3883..f4a71ff 100644 (file)
@@ -520,11 +520,14 @@ StateStar_Context::make_star(const Point& _p1, const Point& _p2)
                                                                         radius1*Angle::sin(angle*i + offset).get() + y));
                new_list[point++].set_tangent(Point(0,0));
 
-               new_list.push_back(*(new BLinePoint));
-               new_list[point].set_width(1);
-               new_list[point].set_vertex(Point(radius2*Angle::cos(angle*i + angle/2 + offset).get() + x,
-                                                                        radius2*Angle::sin(angle*i + angle/2 + offset).get() + y));
-               new_list[point++].set_tangent(Point(0,0));
+               if (!regular)
+               {
+                       new_list.push_back(*(new BLinePoint));
+                       new_list[point].set_width(1);
+                       new_list[point].set_vertex(Point(radius2*Angle::cos(angle*i + angle/2 + offset).get() + x,
+                                                                                        radius2*Angle::sin(angle*i + angle/2 + offset).get() + y));
+                       new_list[point++].set_tangent(Point(0,0));
+               }
        }
 
        ValueNode_BLine::Handle value_node_bline(ValueNode_BLine::create(new_list));