From 72a589a03c563f3b4031f9471efb3205cb5c85a0 Mon Sep 17 00:00:00 2001 From: noideaman <39884745+noideaman@users.noreply.github.com> Date: Thu, 11 Apr 2024 19:13:55 -0600 Subject: [PATCH] Update mesh_data_transfer.py for Blender 4.1 Fixing world object space for blender 4.1 --- mesh_data_transfer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_data_transfer.py b/mesh_data_transfer.py index 12992d7..5717674 100644 --- a/mesh_data_transfer.py +++ b/mesh_data_transfer.py @@ -1117,7 +1117,7 @@ def mark_seam_islands(obj): @staticmethod def transform_vertices_array(array, mat): - verts_co_4d = np.ones(shape=(array.shape[0] , 4) , dtype=np.float) + verts_co_4d = np.ones(shape=(array.shape[0] , 4) , dtype=np.float_)#numpy fix for blender 4.1 using the world object space verts_co_4d[: , :-1] = array # cos v (x,y,z,1) - point, v(x,y,z,0)- vector local_transferred_position = np.einsum ('ij,aj->ai' , mat , verts_co_4d) return local_transferred_position[:, :3]