Fix #4231. Bug where you couldn't add a door to an element assembly.

This commit is contained in:
Dion Moult
2024-01-19 22:47:36 +11:00
parent 9a89555a53
commit 5f4dfcf215
@@ -204,7 +204,7 @@ class AddConstrTypeInstance(bpy.types.Operator):
if (
building_obj
and building_element
and building_element.is_a() in ["IfcWall", "IfcWallStandardCase", "IfcCovering"]
and building_element.is_a() in ["IfcWall", "IfcWallStandardCase", "IfcCovering", "IfcElementAssembly"]
and instance_class in ["IfcWindow", "IfcDoor"]
):
# Fills should be a sibling to the building element
@@ -234,7 +234,7 @@ class AddConstrTypeInstance(bpy.types.Operator):
if (
building_obj
and building_element
and building_element.is_a() in ["IfcWall", "IfcWallStandardCase", "IfcCovering"]
and building_element.is_a() in ["IfcWall", "IfcWallStandardCase", "IfcCovering", "IfcElementAssembly"]
):
if instance_class in ["IfcWindow", "IfcDoor"]:
# TODO For now we are hardcoding windows and doors as a prototype