Fix T57159: don't exit tweak mode in Bake Action if reusing the action.

This commit is contained in:
Alexander Gavrilov 2020-01-14 15:49:30 +03:00
parent d49fa504fd
commit 283d76932a

View File

@ -249,11 +249,14 @@ def bake_action_iter(
if action is None:
action = bpy.data.actions.new("Action")
# Leave tweak mode before trying to modify the action (T48397)
if atd.use_tweak_mode:
atd.use_tweak_mode = False
# Only leave tweak mode if we actually need to modify the action (T57159)
if action != atd.action:
# Leave tweak mode before trying to modify the action (T48397)
if atd.use_tweak_mode:
atd.use_tweak_mode = False
atd.action = action
atd.action = action
# -------------------------------------------------------------------------
# Apply transformations to action