From db6113048db260cb1cd5a8002d0a9181608c9292 Mon Sep 17 00:00:00 2001 From: Christoph Lendenfeld Date: Tue, 20 Aug 2024 16:45:34 +0200 Subject: [PATCH] Fix #126129: Bake Action not working With layered actions, the bake action wasn't working. More specifically it failed to create a slot on the action and link that slot on the animation data. The fix is to create the slot. Pull Request: https://projects.blender.org/blender/blender/pulls/126546 --- scripts/modules/bpy_extras/anim_utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/modules/bpy_extras/anim_utils.py b/scripts/modules/bpy_extras/anim_utils.py index 6ddb70a5efd..63f8e7743a1 100644 --- a/scripts/modules/bpy_extras/anim_utils.py +++ b/scripts/modules/bpy_extras/anim_utils.py @@ -364,6 +364,9 @@ def bake_action_iter( atd.use_tweak_mode = False atd.action = action + if action.is_action_layered: + slot = action.slots.new(for_id=obj) + atd.action_slot = slot # Baking the action only makes sense in Replace mode, so force it (#69105) if not atd.use_tweak_mode: