Skip to content

Commit

Permalink
Fixed the sections count which was missing one. Thanks to ivla
Browse files Browse the repository at this point in the history
  • Loading branch information
Micheus committed Nov 11, 2024
1 parent c17b3d9 commit e0d4dce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins_src/primitives/wpc_cylinder.erl
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ zip_lists_2e(A, B) -> % Both lists must be equal in length
%%%

make_pie(Sections, TopX, TopZ, BotX, BotZ, Height, Degrees, AngleOffset, [Rot, Mov, Ground]) ->
Vs0 = pie_verts(Sections, TopX, TopZ, BotX, BotZ, Height, Degrees, AngleOffset),
Vs0 = pie_verts(Sections+1, TopX, TopZ, BotX, BotZ, Height, Degrees, AngleOffset),
Vs = wings_shapes:transform_obj(Rot,Mov,Ground, Vs0),
Fs = cylinder_faces(trunc(length(Vs0)/2)),
{new_shape,cylinder_type(pie),Fs,Vs}.
Expand Down

0 comments on commit e0d4dce

Please sign in to comment.