Fix #3469. Minor regression in linking refactor.

This commit is contained in:
Dion Moult
2023-07-19 19:57:28 +10:00
parent e7bd5ca8be
commit 5e3b45a591
+1 -1
View File
@@ -193,7 +193,7 @@ class IfcStore:
# Please use tool.Ifc.link() instead of this method. We want to
# refactor this class and deprecate usage of IfcStore in favour of
# tools.
if isinstance(obj, bpy.types.Mesh):
if not isinstance(obj, (bpy.types.Object, bpy.types.Material)):
obj.BIMMeshProperties.ifc_definition_id = element.id()
return