mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 14:23:53 +00:00
See #6883. Keeps each linked aggregate in their original container after refreshing.
This commit is contained in:
@@ -1478,6 +1478,11 @@ class RefreshLinkedAggregate(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
ifc_file.by_id(pset["id"]),
|
ifc_file.by_id(pset["id"]),
|
||||||
properties={"Aggregate_Index": int(original_data[group][index]["Aggregate_Index"])},
|
properties={"Aggregate_Index": int(original_data[group][index]["Aggregate_Index"])},
|
||||||
)
|
)
|
||||||
|
bonsai.core.spatial.assign_container(
|
||||||
|
tool.Ifc, tool.Collector, tool.Spatial, container=original_data[group][index]["Container"], element_obj=obj
|
||||||
|
)
|
||||||
|
for part in ifcopenshell.util.element.get_parts(tool.Ifc.get_entity(obj)):
|
||||||
|
tool.Collector.assign(tool.Ifc.get_object(part))
|
||||||
assignments = original_data[group][index]["Assignment"]
|
assignments = original_data[group][index]["Assignment"]
|
||||||
if assignments:
|
if assignments:
|
||||||
assign_to_annotations(obj, assignments)
|
assign_to_annotations(obj, assignments)
|
||||||
|
|||||||
Reference in New Issue
Block a user