From 76e3b8dd55b5e7cadbf8b40681043bf5640ba3b0 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 29 Aug 2025 19:30:08 +0500 Subject: [PATCH] Bonsai - fix error appending curve/fill area styles It would try to append them as Blender material and would fail, just import them as ifc elements. Noticed testing #7066 --- src/bonsai/bonsai/bim/module/project/operator.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/project/operator.py b/src/bonsai/bonsai/bim/module/project/operator.py index 5e118db2b6..8ef95b19e1 100644 --- a/src/bonsai/bonsai/bim/module/project/operator.py +++ b/src/bonsai/bonsai/bim/module/project/operator.py @@ -620,8 +620,11 @@ class AppendLibraryElement(bpy.types.Operator, tool.Ifc.Operator): self.import_type_from_ifc(element_type, context) elif element.is_a("IfcMaterial"): self.import_material_from_ifc(element, context) - elif element.is_a("IfcPresentationStyle"): + elif element.is_a("IfcSurfaceStyle"): self.import_presentation_style_from_ifc(element, context) + else: + # E.g. other IfcPresentationStyles. + pass try: props = tool.Project.get_project_props()