Skip to content

Commit

Permalink
deactivate auto smooth and normal handing until implementation is ready
Browse files Browse the repository at this point in the history
  • Loading branch information
neo2068 committed Jun 6, 2024
1 parent ea6b067 commit fc6ac86
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions export/mesh_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,18 @@ def _prepare_mesh(obj, depsgraph):
object_eval.to_mesh_clear()
mesh = None

if mesh:
if mesh.has_custom_normals:
mesh.calc_normals_split()
else:
if mesh.use_auto_smooth:
mesh.split_faces()

mesh.calc_loop_triangles()

if mesh.has_custom_normals:
mesh.calc_normals_split()
# TODO implement new normals handling
# if mesh:
# if mesh.has_custom_normals:
# mesh.calc_normals_split()
# else:
# if mesh.use_auto_smooth:
# mesh.split_faces()
#
# mesh.calc_loop_triangles()
#
# if mesh.has_custom_normals:
# mesh.calc_normals_split()

yield mesh
finally:
Expand Down

0 comments on commit fc6ac86

Please sign in to comment.