This commit is contained in:
Andrej730
2023-12-18 12:28:19 +05:00
parent 80f35d0bda
commit 6b7eec0db6
+1 -1
View File
@@ -501,7 +501,7 @@ class Style(blenderbim.core.tool.Style):
@classmethod
def has_blender_external_style(cls, style_elements):
external_style = style_elements.get("IfcExternallyDefinedSurfaceStyle", None)
return bool(external_style and external_style.Location.endswith(".blend"))
return bool(external_style and external_style.Location and external_style.Location.endswith(".blend"))
@classmethod
def is_editing_styles(cls):