From: dooglus Date: Tue, 8 Apr 2008 02:16:23 +0000 (+0000) Subject: Fix the creation of regular polygon blines with the star layer. It was always creati... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d3d3ac30d770f7201264fb83dc2f963c7ad310b0;p=synfig.git Fix the creation of regular polygon blines with the star layer. It was always creating stars before. git-svn-id: http://svn.voria.com/code@1987 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/state_star.cpp b/synfig-studio/trunk/src/gtkmm/state_star.cpp index 63f3883..f4a71ff 100644 --- a/synfig-studio/trunk/src/gtkmm/state_star.cpp +++ b/synfig-studio/trunk/src/gtkmm/state_star.cpp @@ -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));