X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-studio%2Ftrunk%2Fsrc%2Fgtkmm%2Fstate_star.cpp;h=f4a71ff62877c4e93424c1691df6b3bfe1b44468;hb=d3d3ac30d770f7201264fb83dc2f963c7ad310b0;hp=63f38833f7ccbdf13af2f2afb1d095bda11036eb;hpb=0b7b06b3e339d020e686b0f38cd5e92061183ee1;p=synfig.git 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));