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
This commit is contained in:
Christoph Lendenfeld 2024-08-20 16:45:34 +02:00 committed by Christoph Lendenfeld
parent 24f7b7a8fb
commit db6113048d

View File

@ -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: