[Bf-blender-cvs] [5da05dd6278] master: Fix T82210: Animation, Bake Action cleanup
Sybren A. Stüvel
noreply at git.blender.org
Mon Nov 9 12:48:37 CET 2020
Commit: 5da05dd627869eb0cff81f74b6bbfd7875f86e51
Author: Sybren A. Stüvel
Date: Mon Nov 9 12:41:46 2020 +0100
Branches: master
https://developer.blender.org/rB5da05dd627869eb0cff81f74b6bbfd7875f86e51
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
===================================================================
M release/scripts/startup/bl_operators/anim.py
===================================================================
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):
More information about the Bf-blender-cvs
mailing list