Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormano-wii <germano.costa@ig.com.br>2020-01-14 16:49:45 +0300
committermano-wii <germano.costa@ig.com.br>2020-01-14 16:49:45 +0300
commit3a1745235f1623aab2f817131a384efc478d2a86 (patch)
tree3c99810d21018a423ce138a0c491baf9cdbbe67c /release/scripts/modules
parentefa3605ec0a233bb043e5c650af3027038af0f72 (diff)
parent0187735eea17ff580f80115bd840747400732fe7 (diff)
Merge branch 'blender-v2.82-release'
Diffstat (limited to 'release/scripts/modules')
-rw-r--r--release/scripts/modules/bpy_extras/anim_utils.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/release/scripts/modules/bpy_extras/anim_utils.py b/release/scripts/modules/bpy_extras/anim_utils.py
index e402c9cb53c..c67134ac3f6 100644
--- a/release/scripts/modules/bpy_extras/anim_utils.py
+++ b/release/scripts/modules/bpy_extras/anim_utils.py
@@ -249,11 +249,17 @@ 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
+
+ # 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