Fix error switching mode for multiple objects

This commit is contained in:
Andrej730
2024-09-26 10:44:20 +05:00
parent 22b9a8804d
commit 340e8515f5
@@ -1682,7 +1682,7 @@ class OverrideModeSetEdit(bpy.types.Operator, tool.Ifc.Operator):
elif ifc_objs:
obj = ifc_objs[0]
tool.Blender.select_and_activate_single_object(context, obj)
self.handle_single_object(obj)
self.handle_single_object(context, obj)
def enable_editing_representation_item(self, context: bpy.types.Context, obj: bpy.types.Object) -> None:
item = tool.Ifc.get().by_id(obj.data.BIMMeshProperties.ifc_definition_id)