Skip to content

Commit a355775

Browse files
committed
Fix a bug in round splines
1 parent 6a93889 commit a355775

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

src/classy_blocks/construct/flat/sketches/spline_round.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,14 @@ def add_outer_spline_edges(self, center: Optional[NPPointType] = None) -> None:
191191
p_1 = face.point_array[((i + 1) % 2) + 1] # Outer point on diagonal
192192

193193
spline_curve_0_1 = self.outer_spline(
194-
p_0, p_1, radi[int((i + 1) / 2) % 2], sides[int((i + 1) / 2) % 2],
195-
radi[int((i + 3) / 2) % 2], sides[int((i + 3) / 2) % 2], center, reverse=i % 2 == 1
194+
p_0,
195+
p_1,
196+
radi[int((i + 1) / 2) % 2],
197+
sides[int((i + 1) / 2) % 2],
198+
radi[int((i + 3) / 2) % 2],
199+
sides[int((i + 3) / 2) % 2],
200+
center,
201+
reverse=i % 2 == 1,
196202
)
197203
face.add_edge(1, Spline(spline_curve_0_1))
198204

0 commit comments

Comments
 (0)