mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
BBIM: fix profile joiner for beams & other products
This commit is contained in:
@@ -418,7 +418,7 @@ class DumbProfileJoiner:
|
|||||||
self.body = copy.deepcopy(body)
|
self.body = copy.deepcopy(body)
|
||||||
material = ifcopenshell.util.element.get_material(element, should_skip_usage=False)
|
material = ifcopenshell.util.element.get_material(element, should_skip_usage=False)
|
||||||
usage = None
|
usage = None
|
||||||
if not material or not material.is_a("IfcMaterialProfileSet"):
|
if not material or (not material.is_a("IfcMaterialProfileSet") and not material.is_a("IfcMaterialProfileSetUsage")):
|
||||||
return
|
return
|
||||||
if material.is_a("IfcMaterialProfileSetUsage"):
|
if material.is_a("IfcMaterialProfileSetUsage"):
|
||||||
usage = material
|
usage = material
|
||||||
|
|||||||
Reference in New Issue
Block a user