From 45748877097a02278e39787244d1cc2773a6fea8 Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 20 Jul 2021 23:01:16 +1000 Subject: [PATCH] Fix bug where editing multiple objects didn't synchronise changes when exporting. --- src/blenderbim/blenderbim/bim/handler.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/handler.py b/src/blenderbim/blenderbim/bim/handler.py index 6d7ec1f8f7..2fb88a6df6 100644 --- a/src/blenderbim/blenderbim/bim/handler.py +++ b/src/blenderbim/blenderbim/bim/handler.py @@ -13,6 +13,8 @@ global_subscription_owner = object() def mode_callback(obj, data): + if not bpy.context.scene.BIMProjectProperties.is_authoring: + return objects = bpy.context.selected_objects if bpy.context.active_object: objects += [bpy.context.active_object] @@ -22,9 +24,8 @@ def mode_callback(obj, data): or not obj.data or not isinstance(obj.data, (bpy.types.Mesh, bpy.types.Curve, bpy.types.TextCurve)) or not obj.BIMObjectProperties.ifc_definition_id - or not bpy.context.scene.BIMProjectProperties.is_authoring ): - return + continue if obj.data.BIMMeshProperties.ifc_definition_id: representation = IfcStore.get_file().by_id(obj.data.BIMMeshProperties.ifc_definition_id) if representation.RepresentationType in ["Tessellation", "Brep", "Annotation2D"]: