Fix error when updating representation on object data with no BIMMeshProperties

This commit is contained in:
Gorgious
2022-01-24 13:22:17 +01:00
parent 5884af0678
commit 28e6bb9e3d
@@ -145,6 +145,8 @@ class UpdateRepresentation(bpy.types.Operator):
self.file = IfcStore.get_file()
for obj in objs:
if not hasattr(obj.data, "BIMMeshProperties"):
continue
self.update_obj_mesh_representation(context, obj)
IfcStore.edited_objs.discard(obj)
return {"FINISHED"}