Skip to content
Snippets Groups Projects
Commit a131db64 authored by Julien Duroure's avatar Julien Duroure
Browse files

Remove usage of future deprecated np.bool alias

parent bcc79238
No related branches found
No related tags found
No related merge requests found
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
bl_info = { bl_info = {
'name': 'glTF 2.0 format', 'name': 'glTF 2.0 format',
'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors', 'author': 'Julien Duroure, Scurest, Norbert Nopper, Urs Hanselmann, Moritz Becher, Benjamin Schmithüsen, Jim Eckerlein, and many external contributors',
"version": (3, 5, 14), "version": (3, 5, 15),
'blender': (3, 4, 0), 'blender': (3, 4, 0),
'location': 'File > Import-Export', 'location': 'File > Import-Export',
'description': 'Import-Export as glTF 2.0', 'description': 'Import-Export as glTF 2.0',
......
...@@ -609,7 +609,7 @@ def set_poly_smoothing(gltf, pymesh, mesh, vert_normals, loop_vidxs): ...@@ -609,7 +609,7 @@ def set_poly_smoothing(gltf, pymesh, mesh, vert_normals, loop_vidxs):
# Try to guess which polys should be flat based on the fact that all the # Try to guess which polys should be flat based on the fact that all the
# loop normals for a flat poly are = the poly's normal. # loop normals for a flat poly are = the poly's normal.
poly_smooths = np.empty(num_polys, dtype=np.bool) poly_smooths = np.empty(num_polys, dtype=bool)
poly_normals = np.empty(num_polys * 3, dtype=np.float32) poly_normals = np.empty(num_polys * 3, dtype=np.float32)
mesh.polygons.foreach_get('normal', poly_normals) mesh.polygons.foreach_get('normal', poly_normals)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment