From a7ea740828190fc9891b096349cc244eb15139c8 Mon Sep 17 00:00:00 2001 From: Thomas Barlow Date: Wed, 17 Jan 2024 13:34:15 +0000 Subject: [PATCH 1/2] Mesh Tissue: Use the new ShapeKey.points with faster foreach_get/set Added to Blender 4.1.0 in ??????????, ShapeKey.points gives optimized access to shape key points data (meshes/lattices) when accessed with #foreach_get and #foreach_set. --- mesh_tissue/tessellate_numpy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mesh_tissue/tessellate_numpy.py b/mesh_tissue/tessellate_numpy.py index 02173bce4..bf6794c24 100644 --- a/mesh_tissue/tessellate_numpy.py +++ b/mesh_tissue/tessellate_numpy.py @@ -995,7 +995,7 @@ def tessellate_patch(props): for i in range(n_sk): coordinates = np.concatenate(store_sk_coordinates[:,i], axis=0) coordinates = coordinates.flatten().tolist() - new_patch.data.shape_keys.key_blocks[i+1].data.foreach_set('co', coordinates) + new_patch.data.shape_keys.key_blocks[i+1].points.foreach_set('co', coordinates) # set original values and combine Shape Keys and Vertex Groups for sk, val in zip(_ob1.data.shape_keys.key_blocks, original_key_values): -- 2.30.2 From 2abd580688f3285ac456927fe85b5e9888651751 Mon Sep 17 00:00:00 2001 From: Thomas Barlow Date: Wed, 17 Jan 2024 13:38:49 +0000 Subject: [PATCH 2/2] Increase Mesh Tissue version and minimum Blender version --- mesh_tissue/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mesh_tissue/__init__.py b/mesh_tissue/__init__.py index 5f2b70b50..7ed852985 100644 --- a/mesh_tissue/__init__.py +++ b/mesh_tissue/__init__.py @@ -19,8 +19,8 @@ bl_info = { "name": "Tissue", "author": "Alessandro Zomparelli (Co-de-iT)", - "version": (0, 3, 54), - "blender": (2, 93, 0), + "version": (0, 3, 55), + "blender": (4, 1, 0), "location": "", "description": "Tools for Computational Design", "warning": "", -- 2.30.2