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:
authorSybren A. Stüvel <sybren@blender.org>2020-11-09 14:41:46 +0300
committerSybren A. Stüvel <sybren@blender.org>2020-11-09 14:41:51 +0300
commit5da05dd627869eb0cff81f74b6bbfd7875f86e51 (patch)
tree2b4633e2cf7fefd2b2ff580a56a63c57319dd3be /release
parent118e31a0a995ae4e8845376215d9c35017a8f781 (diff)
Fix T82210: Animation, Bake Action cleanup
Make post-bake cleanup of the Bake Action operator optional, and disable by default. Previously Bake Action would do two things: - Bake the Action - Clean up the FCurves It is now possible (and even the default) to only perform the baking operation. Reviewed By: #animation_rigging, looch, sybren Maniphest Tasks: T82210 Differential Revision: https://developer.blender.org/D9453
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_operators/anim.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py
index 8334557d1f6..ab79ebe3957 100644
--- a/release/scripts/startup/bl_operators/anim.py
+++ b/release/scripts/startup/bl_operators/anim.py
@@ -247,6 +247,11 @@ class NLA_OT_bake(Operator):
"(useful for baking only part of bones in an armature)",
default=False,
)
+ clean_curves: BoolProperty(
+ name="Clean Curves",
+ description="After baking curves, remove redundant keys",
+ default=False,
+ )
bake_types: EnumProperty(
name="Bake Data",
description="Which data's transformations to bake",
@@ -282,7 +287,7 @@ class NLA_OT_bake(Operator):
do_visual_keying=self.visual_keying,
do_constraint_clear=self.clear_constraints,
do_parents_clear=self.clear_parents,
- do_clean=True,
+ do_clean=self.clean_curves,
)
if not any(actions):