1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-21 05:52:16 +02:00

fixed begin > end if [begin:end] problem

This commit is contained in:
Justin Lin
2017-05-22 17:20:53 +08:00
parent fb0b2b4a66
commit 29762e878a

View File

@@ -34,7 +34,7 @@ module pie(radius, angle) {
points = concat( points = concat(
[[0, 0], __ra_to_xy(edge_r_begin(angles[0]), angles[0])], [[0, 0], __ra_to_xy(edge_r_begin(angles[0]), angles[0])],
[for(i = [m:n]) __ra_to_xy(radius, a_step * i)], m > n ? [] : [for(i = [m:n]) __ra_to_xy(radius, a_step * i)],
[__ra_to_xy(edge_r_end(angles[1]), angles[1])] [__ra_to_xy(edge_r_end(angles[1]), angles[1])]
); );