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.
Showing only changes of commit a7ea740828 - Show all commits

View File

@ -995,7 +995,7 @@ def tessellate_patch(props):
for i in range(n_sk): for i in range(n_sk):
coordinates = np.concatenate(store_sk_coordinates[:,i], axis=0) coordinates = np.concatenate(store_sk_coordinates[:,i], axis=0)
coordinates = coordinates.flatten().tolist() 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 # set original values and combine Shape Keys and Vertex Groups
for sk, val in zip(_ob1.data.shape_keys.key_blocks, original_key_values): for sk, val in zip(_ob1.data.shape_keys.key_blocks, original_key_values):