From 5f4dfcf2151daf18e7f678e0af949c43b94a477f Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 19 Jan 2024 22:47:36 +1100 Subject: [PATCH] Fix #4231. Bug where you couldn't add a door to an element assembly. --- src/blenderbim/blenderbim/bim/module/model/product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/module/model/product.py b/src/blenderbim/blenderbim/bim/module/model/product.py index a3d75eefb8..8d255a38a0 100644 --- a/src/blenderbim/blenderbim/bim/module/model/product.py +++ b/src/blenderbim/blenderbim/bim/module/model/product.py @@ -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