WIP: Mesh Tissue: Use the new ShapeKey.points with faster foreach_get/set #105135
@ -19,8 +19,8 @@
|
|||||||
bl_info = {
|
bl_info = {
|
||||||
"name": "Tissue",
|
"name": "Tissue",
|
||||||
"author": "Alessandro Zomparelli (Co-de-iT)",
|
"author": "Alessandro Zomparelli (Co-de-iT)",
|
||||||
"version": (0, 3, 54),
|
"version": (0, 3, 55),
|
||||||
"blender": (2, 93, 0),
|
"blender": (4, 1, 0),
|
||||||
"location": "",
|
"location": "",
|
||||||
"description": "Tools for Computational Design",
|
"description": "Tools for Computational Design",
|
||||||
"warning": "",
|
"warning": "",
|
||||||
|
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user