[Bf-blender-cvs] [d5c963bbc3d] blender-v2.82-release: Fix T69105: reset the action blend mode to Replace in Bake Action.

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


Commit: d5c963bbc3da296f7740ef6df563946ed1f98d15
Author: Alexander Gavrilov
Date:   Tue Jan 14 16:04:23 2020 +0300
Branches: blender-v2.82-release
https://developer.blender.org/rBd5c963bbc3da296f7740ef6df563946ed1f98d15

Fix T69105: reset the action blend mode to Replace in Bake Action.

This can't be done in Tweak mode since the setting is stored in the
tweaked strip, and the logic for finding it is not exposed to python.

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

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 d5e328f5c51..c67134ac3f6 100644
--- a/release/scripts/modules/bpy_extras/anim_utils.py
+++ b/release/scripts/modules/bpy_extras/anim_utils.py
@@ -257,6 +257,9 @@ def bake_action_iter(
 
         atd.action = action
 
+    # Baking the action only makes sense in Replace mode, so force it (T69105)
+    if not atd.use_tweak_mode:
+        atd.action_blend_type = 'REPLACE'
 
     # -------------------------------------------------------------------------
     # Apply transformations to action



More information about the Bf-blender-cvs mailing list