mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user