mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 05:17:58 +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()
|
self.file = IfcStore.get_file()
|
||||||
|
|
||||||
for obj in objs:
|
for obj in objs:
|
||||||
|
if not hasattr(obj.data, "BIMMeshProperties"):
|
||||||
|
continue
|
||||||
self.update_obj_mesh_representation(context, obj)
|
self.update_obj_mesh_representation(context, obj)
|
||||||
IfcStore.edited_objs.discard(obj)
|
IfcStore.edited_objs.discard(obj)
|
||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|||||||
Reference in New Issue
Block a user