mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 10:06:47 +00:00
Fix error when updating representation on object data with no BIMMeshProperties
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user