Fix for deeply nested Compounds Issue #607

This commit is contained in:
gumyr 2024-11-06 20:18:02 -05:00
parent 0b4b2b2b54
commit 3dbc873c4f

View file

@ -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)