mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-01 12:40:07 +00:00
Refresh different types of aggregates at one time
This commit is contained in:
@@ -1016,10 +1016,9 @@ class RefreshLinkedAggregate(bpy.types.Operator):
|
|||||||
|
|
||||||
tool.Geometry.delete_ifc_object(tool.Ifc.get_object(element))
|
tool.Geometry.delete_ifc_object(tool.Ifc.get_object(element))
|
||||||
|
|
||||||
if len(context.selected_objects) != 1:
|
selected_objects = context.selected_objects
|
||||||
return {"FINISHED"}
|
|
||||||
|
|
||||||
selected_obj = context.selected_objects[0]
|
for selected_obj in selected_objects:
|
||||||
selected_element = tool.Ifc.get_entity(selected_obj)
|
selected_element = tool.Ifc.get_entity(selected_obj)
|
||||||
|
|
||||||
if selected_element.is_a("IfcElementAssembly"):
|
if selected_element.is_a("IfcElementAssembly"):
|
||||||
|
|||||||
Reference in New Issue
Block a user