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:
authorCampbell Barton <ideasman42@gmail.com>2013-04-11 12:42:25 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-04-11 12:42:25 +0400
commit577a1b9239be28f29ea1d0b1c6f4454b4e825967 (patch)
treeebe1e4295c2b9f1fdd4837e6fcdbe23208f560a1 /release/scripts/startup/bl_operators/anim.py
parentacac5b8402e93ff45ada9b353fcb6b3d931cb764 (diff)
fix [#34805] Bake action ignores parent motion
in fact this is more feature request. add an option to bake a parented objects animation, then clear the parent and apply the action.
Diffstat (limited to 'release/scripts/startup/bl_operators/anim.py')
-rw-r--r--release/scripts/startup/bl_operators/anim.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_operators/anim.py b/release/scripts/startup/bl_operators/anim.py
index e34e9a981a6..943eed74b1d 100644
--- a/release/scripts/startup/bl_operators/anim.py
+++ b/release/scripts/startup/bl_operators/anim.py
@@ -195,6 +195,11 @@ class BakeAction(Operator):
description="Remove all constraints from keyed object/bones, and do 'visual' keying",
default=False,
)
+ clear_parents = BoolProperty(
+ name="Clear Parents",
+ description="Bake animation onto the object then clear parents (objects only)",
+ default=False,
+ )
bake_types = EnumProperty(
name="Bake Data",
description="Which data's transformations to bake",
@@ -216,6 +221,7 @@ class BakeAction(Operator):
do_pose='POSE' in self.bake_types,
do_object='OBJECT' in self.bake_types,
do_constraint_clear=self.clear_constraints,
+ do_parents_clear=self.clear_parents,
do_clean=True,
)