mirror of
https://github.com/gumyr/build123d.git
synced 2026-03-09 00:02:04 -07:00
Fix for deeply nested Compounds Issue #607
This commit is contained in:
parent
0b4b2b2b54
commit
3dbc873c4f
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue