Skip to content

Commit 92e1488

Browse files
Fix extrude in subtractive mode
1 parent 4f5bd96 commit 92e1488

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cadquery/cq.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3037,8 +3037,12 @@ def extrude(
30373037
and the resulting solid becomes the new context solid.
30383038
"""
30393039

3040+
# If subtractive mode is requested, use cutBlind
3041+
if combine in ("cut", "s"):
3042+
return self.cutBlind(until, clean, taper)
3043+
30403044
# Handle `until` multiple values
3041-
if isinstance(until, str) and until in ("next", "last") and combine:
3045+
elif until in ("next", "last") and combine in (True, "a"):
30423046
if until == "next":
30433047
faceIndex = 0
30443048
elif until == "last":

0 commit comments

Comments
 (0)