Skip to content

Commit

Permalink
Fix extraanim merge
Browse files Browse the repository at this point in the history
  • Loading branch information
julienduroure committed May 20, 2024
1 parent 86453b2 commit 99d077e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def gather_sk_sampled_keyframes(obj_uuid,
# Using this option, we miss the drivers :(
# No solution exists for now. In the future, we should be able to copy a driver
if action_name in bpy.data.actions:
channel_group, _ = get_channel_groups(obj_uuid, bpy.data.actions[action_name], export_settings, no_sample_option=True)
channel_group, _, _ = get_channel_groups(obj_uuid, bpy.data.actions[action_name], export_settings, no_sample_option=True)
elif blender_obj.data.shape_keys.animation_data and blender_obj.data.shape_keys.animation_data.action:
channel_group, _ = get_channel_groups(obj_uuid, blender_obj.data.shape_keys.animation_data.action, export_settings, no_sample_option=True)
channel_group, _, _ = get_channel_groups(obj_uuid, blender_obj.data.shape_keys.animation_data.action, export_settings, no_sample_option=True)
else:
channel_group = {}
channels = [None] * len(get_sk_exported(blender_obj.data.shape_keys.key_blocks))
Expand All @@ -55,7 +55,7 @@ def gather_sk_sampled_keyframes(obj_uuid,
channels = chan['properties']['value']
break

non_keyed_values = gather_non_keyed_values(obj_uuid, channels, None, export_settings)
non_keyed_values = gather_non_keyed_values(obj_uuid, channels, None, False, export_settings)

while frame <= end_frame:
key = Keyframe(channels, frame, None)
Expand Down

0 comments on commit 99d077e

Please sign in to comment.