23 lines
1.1 KiB
Diff
23 lines
1.1 KiB
Diff
From 74e6e07cf7c67b55d384db72f5aa3892db8a3da6 Mon Sep 17 00:00:00 2001
|
|
From: oreo639 <oreo6391@gmail.com>
|
|
Date: Tue, 17 Jan 2023 14:36:54 -0800
|
|
Subject: [PATCH] Remove usage of deprecated np.bool alias
|
|
|
|
---
|
|
addons/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/addons/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py b/addons/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py
|
|
index 6366434a6..8160c9e99 100644
|
|
--- a/release/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py
|
|
+++ b/release/scripts/addons/io_scene_gltf2/blender/imp/gltf2_blender_mesh.py
|
|
@@ -620,7 +620,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
|
|
# 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)
|
|
mesh.polygons.foreach_get('normal', poly_normals)
|