Skip to content

Commit 1b4fb27

Browse files
Different clean handling
Needed for backward compatibility (one test failing).
1 parent f95227c commit 1b4fb27

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

cadquery/cq.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3208,7 +3208,10 @@ def _combineWithBase(
32083208
newS = self.newObject(obj if not isinstance(obj, Shape) else [obj])
32093209

32103210
if clean:
3211-
newS = newS.clean()
3211+
# NB: not calling self.clean() to not pollute the parents
3212+
newS.objects = [
3213+
obj.clean() if isinstance(obj, Shape) else obj for obj in newS.objects
3214+
]
32123215

32133216
return newS
32143217

0 commit comments

Comments
 (0)