fix bug generating profiles on assign_type after df4943205

This commit is contained in:
Andrej730
2024-04-11 11:01:19 +05:00
parent 58b39d3926
commit 1ea80016cd
@@ -214,7 +214,7 @@ class DumbProfileRegenerator:
relating_type = settings["relating_type"]
new_material = ifcopenshell.util.element.get_material(relating_type)
if not new_material or not new_material.is_a("IfcMaterialLayerSet"):
if not new_material or not new_material.is_a("IfcMaterialProfileSet"):
return
for related_object in settings["related_objects"]: