Skip to content

Commit

Permalink
fix: SlotCenterToCenter errors if center_separation <= 0
Browse files Browse the repository at this point in the history
  • Loading branch information
erooke committed Nov 17, 2024
1 parent e2aafc5 commit 5510729
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/build123d/objects_sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,11 @@ def __init__(
rotation: float = 0,
mode: Mode = Mode.ADD,
):
if center_separation <= 0:
raise ValueError(
f"Requires center_separation > 0. Got: {center_separation=}"
)

context = BuildSketch._get_context(self)
validate_inputs(context, self)

Expand Down

0 comments on commit 5510729

Please sign in to comment.