mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-26 10:11:46 +00:00
Fix #4231. Bug where you couldn't add a door to an element assembly.
This commit is contained in:
@@ -204,7 +204,7 @@ class AddConstrTypeInstance(bpy.types.Operator):
|
|||||||
if (
|
if (
|
||||||
building_obj
|
building_obj
|
||||||
and building_element
|
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"]
|
and instance_class in ["IfcWindow", "IfcDoor"]
|
||||||
):
|
):
|
||||||
# Fills should be a sibling to the building element
|
# Fills should be a sibling to the building element
|
||||||
@@ -234,7 +234,7 @@ class AddConstrTypeInstance(bpy.types.Operator):
|
|||||||
if (
|
if (
|
||||||
building_obj
|
building_obj
|
||||||
and building_element
|
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"]:
|
if instance_class in ["IfcWindow", "IfcDoor"]:
|
||||||
# TODO For now we are hardcoding windows and doors as a prototype
|
# TODO For now we are hardcoding windows and doors as a prototype
|
||||||
|
|||||||
Reference in New Issue
Block a user