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
This commit is contained in:
Andrej730
2025-08-29 19:30:08 +05:00
parent d004410ccb
commit 76e3b8dd55
@@ -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()