mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-20 12:12:15 +00:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user