bim.assign_class - apply modifiers

Noticed working on #6500
This commit is contained in:
Andrej730
2025-04-09 18:20:51 +05:00
parent 5b15de50b6
commit 81943ec9e5
@@ -242,6 +242,12 @@ class AssignClass(bpy.types.Operator, tool.Ifc.Operator):
)
obj.select_set(False)
# Apply geometry.
if obj.modifiers:
ensure_single_user_mesh(obj.data)
with context.temp_override(selected_editable_objects=[obj]):
bpy.ops.object.convert(target="MESH")
# Apply scale.
if obj.scale != (1, 1, 1):
ensure_single_user_mesh(obj.data)