mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 18:21:59 +00:00
#1951. Fix bug where opening standard cases couldn't be added as voids.
This commit is contained in:
@@ -49,7 +49,11 @@ class BIM_PT_voids(Panel):
|
|||||||
if len(context.selected_objects) == 2:
|
if len(context.selected_objects) == 2:
|
||||||
op = row.operator("bim.add_opening", icon="ADD", text="Add Opening")
|
op = row.operator("bim.add_opening", icon="ADD", text="Add Opening")
|
||||||
for obj in context.selected_objects:
|
for obj in context.selected_objects:
|
||||||
if "IfcOpeningElement" in obj.name or not obj.BIMObjectProperties.ifc_definition_id:
|
if (
|
||||||
|
"IfcOpeningElement" in obj.name
|
||||||
|
or "IfcOpeningStandardCase" in obj.name
|
||||||
|
or not obj.BIMObjectProperties.ifc_definition_id
|
||||||
|
):
|
||||||
op.opening = obj.name
|
op.opening = obj.name
|
||||||
elif len(obj.children) == 1 and not obj.children[0].BIMObjectProperties.ifc_definition_id:
|
elif len(obj.children) == 1 and not obj.children[0].BIMObjectProperties.ifc_definition_id:
|
||||||
op.opening = obj.children[0].name
|
op.opening = obj.children[0].name
|
||||||
|
|||||||
Reference in New Issue
Block a user