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.
This commit is contained in:
Campbell Barton
2013-04-11 08:42:25 +00:00
parent acac5b8402
commit 577a1b9239
2 changed files with 23 additions and 2 deletions

View File

@@ -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,
)