FBX IO: Fix import of shape key animations without any keyframes #105030

Member

Attempting to import a shape key animation without any animation curves
or with only empty animation curves would result in attempting to get
the min/max of an empty list or array.

The animation curve values array is now checked for being non-empty
before attempting to get its minimum and maximum values.

The list of animated shape key deform values is now only created when
there are values to add to it, thus ensuring it is never empty.


This is a backport of 2c32cc163f with the merge conflicts in bl_info resolved.

Attempting to import a shape key animation without any animation curves or with only empty animation curves would result in attempting to get the min/max of an empty list or array. The animation curve values array is now checked for being non-empty before attempting to get its minimum and maximum values. The list of animated shape key deform values is now only created when there are values to add to it, thus ensuring it is never empty. --- This is a backport of 2c32cc163f with the merge conflicts in `bl_info` resolved.
Thomas Barlow added 1 commit 2023-11-27 16:05:59 +01:00
Attempting to import a shape key animation without any animation curves
or with only empty animation curves would result in attempting to get
the min/max of an empty list or array.

The animation curve values array is now checked for being non-empty
before attempting to get its minimum and maximum values.

The list of animated shape key deform values is now only created when
there are values to add to it, thus ensuring it is never empty.
Bastien Montagne approved these changes 2023-11-29 12:53:51 +01:00
Bastien Montagne merged commit db7a31b51f into blender-v4.0-release 2023-11-29 12:54:08 +01:00
Bastien Montagne deleted branch backport_fix_fbx_shape_anim_no_frames 2023-11-29 12:54:08 +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#105030
No description provided.