mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 22:43:41 +00:00
Fix #3349. Allow inserting a filling into an uncontained building element.
This commit is contained in:
@@ -154,10 +154,11 @@ class AddConstrTypeInstance(bpy.types.Operator):
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
parent = ifcopenshell.util.element.get_container(building_element)
|
parent = ifcopenshell.util.element.get_container(building_element)
|
||||||
parent_obj = tool.Ifc.get_object(parent)
|
if parent:
|
||||||
blenderbim.core.spatial.assign_container(
|
parent_obj = tool.Ifc.get_object(parent)
|
||||||
tool.Ifc, tool.Collector, tool.Spatial, structure_obj=parent_obj, element_obj=obj
|
blenderbim.core.spatial.assign_container(
|
||||||
)
|
tool.Ifc, tool.Collector, tool.Spatial, structure_obj=parent_obj, element_obj=obj
|
||||||
|
)
|
||||||
|
|
||||||
# set occurences properties for the types defined with modifiers
|
# set occurences properties for the types defined with modifiers
|
||||||
if instance_class in ["IfcWindow", "IfcDoor"]:
|
if instance_class in ["IfcWindow", "IfcDoor"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user