[Bf-blender-cvs] [283d76932a7] blender-v2.82-release: Fix T57159: don't exit tweak mode in Bake Action if reusing the action.

Alexander Gavrilov noreply at git.blender.org
Tue Jan 14 14:13:27 CET 2020


Commit: 283d76932a74971b8be06a988c2e0646fdbc1b78
Author: Alexander Gavrilov
Date:   Tue Jan 14 15:49:30 2020 +0300
Branches: blender-v2.82-release
https://developer.blender.org/rB283d76932a74971b8be06a988c2e0646fdbc1b78

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

===================================================================

M	release/scripts/modules/bpy_extras/anim_utils.py

===================================================================

diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py
index e402c9cb53c..d5e328f5c51 100644
--- a/release/scripts/modules/bpy_extras/anim_utils.py
+++ b/release/scripts/modules/bpy_extras/anim_utils.py
@@ -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



More information about the Bf-blender-cvs mailing list