Skip to content
This repository was archived by the owner on Nov 24, 2024. It is now read-only.

Commit c541aa7

Browse files
committed
Fix bug where syncing upon export was broken
1 parent b821e62 commit c541aa7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/blenderbim/blenderbim/bim/module/geometry

src/blenderbim/blenderbim/bim/module/geometry/operator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ def update_obj_mesh_representation(self, context, obj):
398398

399399
obj.data.BIMMeshProperties.ifc_definition_id = int(new_representation.id())
400400
obj.data.name = f"{old_representation.ContextOfItems.id()}/{new_representation.id()}"
401-
bpy.ops.bim.remove_representation(representation_id=old_representation.id())
401+
bpy.ops.bim.remove_representation(representation_id=old_representation.id(), obj=obj.name)
402402
Data.load(IfcStore.get_file(), obj.BIMObjectProperties.ifc_definition_id)
403403

404404

0 commit comments

Comments
 (0)