Skip to content

Commit

Permalink
Fix for deeply nested Compounds Issue #607
Browse files Browse the repository at this point in the history
  • Loading branch information
gumyr committed Nov 7, 2024
1 parent 0b4b2b2 commit 3dbc873
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/build123d/operations_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,10 @@ def add(
raise RuntimeError("Add must have an active builder context")

object_iter = objects if isinstance(objects, Iterable) else [objects]
object_iter = [
obj.unwrap(fully=False) if isinstance(obj, Compound) else obj
for obj in object_iter
]
object_iter = [obj._obj if isinstance(obj, Builder) else obj for obj in object_iter]

validate_inputs(context, "add", object_iter)
Expand Down

0 comments on commit 3dbc873

Please sign in to comment.