Minor fix. Don't know all the answers.

This commit is contained in:
Dion Moult
2022-01-25 16:50:36 +11:00
parent 01f25528e8
commit 8fd4351195
@@ -145,7 +145,10 @@ class UpdateRepresentation(bpy.types.Operator):
self.file = IfcStore.get_file()
for obj in objs:
if not hasattr(obj.data, "BIMMeshProperties"):
# TODO: write unit tests to see how this bulk operation handles
# contradictory ifc_representation_class values and when
# ifc_representation_class is IfcTextLiteral
if not obj.data:
continue
self.update_obj_mesh_representation(context, obj)
IfcStore.edited_objs.discard(obj)