bim.assign_class - don't flip normals for objects with negative scale in Blender 5.1+

The issue was fixed upstream - https://projects.blender.org/blender/blender/issues/102266
This commit is contained in:
Andrej730
2026-01-26 16:08:33 +05:00
parent d62a6186b5
commit 2f5bcccd2c
@@ -307,7 +307,7 @@ class AssignClass(bpy.types.Operator, tool.Ifc.Operator):
with context.temp_override(selected_editable_objects=[obj]):
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True, properties=False)
# object.transform_apply is losing normals.
if is_negative:
if is_negative and bpy.app.version >= (5, 1, 0):
for polygon in obj.data.polygons:
polygon.flip()