FBX IO: Fix error importing transformation animations with a single channel

The second return value of _combine_curve_keyframe_times is supposed to
be a list of arrays, but when there was only a single input array, that
array was being returned directly, without putting it in a list.

This fixes an unreported mistake in abab1c9343.
This commit is contained in:
Thomas Barlow
2023-09-06 22:44:02 +01:00
parent dbcc17eb97
commit 7362631fa4
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@
bl_info = {
"name": "FBX format",
"author": "Campbell Barton, Bastien Montagne, Jens Restemeier, @Mysteryem",
"version": (5, 7, 0),
"version": (5, 7, 1),
"blender": (3, 6, 0),
"location": "File > Import-Export",
"description": "FBX IO meshes, UVs, vertex colors, materials, textures, cameras, lamps and actions",

View File

@ -668,7 +668,8 @@ def _combine_curve_keyframe_times(times_and_values_tuples, initial_values):
interpolating the keyframe values is a TODO."""
if len(times_and_values_tuples) == 1:
# Nothing to do when there is only a single curve.
return times_and_values_tuples[0]
times, values = times_and_values_tuples[0]
return times, [values]
all_times = [t[0] for t in times_and_values_tuples]