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

Commit ef88b30

Browse files
committed
Fix bug where import mesh cleaning would inadvertently mark meshes as edited
1 parent 5e815e7 commit ef88b30

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/blenderbim/blenderbim/bim/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
def mode_callback(obj, data):
1212
for obj in bpy.context.selected_objects:
1313
if (
14-
obj.mode != "OBJECT"
14+
obj.mode != "EDIT"
1515
or not obj.data
1616
or not isinstance(obj.data, bpy.types.Mesh)
1717
or not obj.data.BIMMeshProperties.ifc_definition_id

src/blenderbim/blenderbim/bim/import_ifc.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1000,6 +1000,7 @@ def clean_mesh(self):
10001000
bpy.ops.mesh.tris_convert_to_quads(context_override)
10011001
bpy.ops.mesh.normals_make_consistent(context_override)
10021002
bpy.ops.object.editmode_toggle(context_override)
1003+
IfcStore.edited_objs.clear()
10031004

10041005
def add_opening_relation(self, element, obj):
10051006
if not element.is_a("IfcOpeningElement"):

0 commit comments

Comments
 (0)