WIP: Mesh Tissue: Use the new ShapeKey.points with faster foreach_get/set #105135

Closed
Thomas Barlow wants to merge 2 commits from Mysteryem/blender-addons:shape_key_points_mesh_tissue into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
2 changed files with 3 additions and 3 deletions

View File

@ -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": "",

View File

@ -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):