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.
Member

Added to Blender 4.1.0 in blender/blender@7d77caab9b, ShapeKey.points
gives optimized access to shape key points data (meshes/lattices) when
accessed with #foreach_get and #foreach_set.

This patch updates Mesh Tissue to use ShapeKey.points. Speeding up
setting shape key data with #foreach_set, but only by about 3.8 times
because Mesh Tissue is using #foreach_set with a Python list rather than
a compatible buffer.

Added to Blender 4.1.0 in blender/blender@7d77caab9b, ShapeKey.points gives optimized access to shape key points data (meshes/lattices) when accessed with #foreach_get and #foreach_set. This patch updates Mesh Tissue to use ShapeKey.points. Speeding up setting shape key data with #foreach_set, but only by about 3.8 times because Mesh Tissue is using #foreach_set with a Python list rather than a compatible buffer.
Thomas Barlow added 2 commits 2024-01-17 14:51:26 +01:00
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.
Author
Member

Looking into getting this PR ready, it seems that Mesh Tissue is broken in multiple places in Blender 4.0+ (contains use of the removed operator override positional arguments and Mesh.calc_normals(), and more). The version of Mesh Tissue bundled with Blender is behind the upstream repository that has fixes for Blender 4.0+: https://github.com/alessandro-zomparelli/tissue

It probably also means this PR will need to go to the upstream repository instead of here.

Looking into getting this PR ready, it seems that Mesh Tissue is broken in multiple places in Blender 4.0+ (contains use of the removed operator override positional arguments and `Mesh.calc_normals()`, and more). The version of Mesh Tissue bundled with Blender is behind the upstream repository that has fixes for Blender 4.0+: https://github.com/alessandro-zomparelli/tissue It probably also means this PR will need to go to the upstream repository instead of here.
Author
Member

I'll move this to the upstream repository

I'll move this to the upstream repository
Thomas Barlow closed this pull request 2024-02-15 23:36:35 +01:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender-addons#105135
No description provided.