[Bf-extensions-cvs] [79410367] blender-v3.2-release: Fix error in STL importer due to API change

Iyad Ahmed noreply at git.blender.org
Mon May 23 14:18:51 CEST 2022


Commit: 79410367854821cdf272a0c9976b323bd0356fbc
Author: Iyad Ahmed
Date:   Mon May 23 14:17:03 2022 +0200
Branches: blender-v3.2-release
https://developer.blender.org/rBA79410367854821cdf272a0c9976b323bd0356fbc

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

===================================================================

M	io_mesh_stl/blender_utils.py

===================================================================

diff --git a/io_mesh_stl/blender_utils.py b/io_mesh_stl/blender_utils.py
index 0cfc428b..a6067cf4 100644
--- a/io_mesh_stl/blender_utils.py
+++ b/io_mesh_stl/blender_utils.py
@@ -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()



More information about the Bf-extensions-cvs mailing list