FBX IO: Use the new ShapeKey.points with faster foreach_get/set #105133

Merged
Thomas Barlow merged 2 commits from Mysteryem/blender-addons:shape_key_points_fbx into main 2024-01-24 05:06:50 +01:00
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.

FBX 'shape keys' (Shape Geometry) are sparse data, but Blender shape
keys have one coordinate for every vertex in the mesh, which means that
importing a large mesh with many small shape keys can result in writing
a very large amount of Shape Key data compared to what was stored in the
.fbx file.

This patch updates FBX IO to use ShapeKey.points, noticeably speeding up
imports and exports of larger meshes with many shape keys.

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. FBX 'shape keys' (Shape Geometry) are sparse data, but Blender shape keys have one coordinate for every vertex in the mesh, which means that importing a large mesh with many small shape keys can result in writing a very large amount of Shape Key data compared to what was stored in the .fbx file. This patch updates FBX IO to use ShapeKey.points, noticeably speeding up imports and exports of larger meshes with many shape keys.
Thomas Barlow added 1 commit 2024-01-17 14:47:57 +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.
Thomas Barlow changed title from WIP: FBX IO: Use the new ShapeKey.points with faster foreach_get/set to FBX IO: Use the new ShapeKey.points with faster foreach_get/set 2024-01-21 18:56:09 +01:00
Thomas Barlow requested review from Bastien Montagne 2024-01-22 03:54:59 +01:00
Bastien Montagne approved these changes 2024-01-22 18:06:10 +01:00
Bastien Montagne left a comment
Owner

LGTM. 👍

LGTM. 👍
Thomas Barlow added 1 commit 2024-01-24 05:05:31 +01:00
Thomas Barlow merged commit a99528adb0 into main 2024-01-24 05:06:50 +01:00
Thomas Barlow deleted branch shape_key_points_fbx 2024-01-24 05:06:51 +01:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
2 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#105133
No description provided.