Fix error in STL importer due to API change

when facet normals option is ticked in importer file dialog, it would trigger an error.

Sharp edge draw option is now a settings from View3D Overlay.

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D15001
This commit is contained in:
Iyad Ahmed 2022-05-23 14:17:03 +02:00 committed by Bastien Montagne
parent 0f6fa4644a
commit 7941036785
1 changed files with 0 additions and 1 deletions

View File

@ -36,7 +36,6 @@ def create_and_link_mesh(name, faces, face_nors, points, global_matrix):
mesh.normals_split_custom_set(tuple(zip(*(iter(clnors),) * 3)))
mesh.use_auto_smooth = True
mesh.show_edge_sharp = True
mesh.free_normals_split()
mesh.update()