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:
parent
0f6fa4644a
commit
7941036785
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue