Anim: Action bake custom properties

Add custom properties to Action Bake.

objects will bake all animatable custom properties. Armatures will bake all bone custom properties,
as well as object (armature) custom properties.

Pull Request: https://projects.blender.org/blender/blender/pulls/113208
This commit is contained in:
Nate Rupsis
2023-12-29 17:59:24 +01:00
committed by Nate Rupsis
parent 8555c22ced
commit 4ddb52a775
2 changed files with 60 additions and 12 deletions

View File

@@ -259,8 +259,9 @@ class NLA_OT_bake(Operator):
('ROTATION', "Rotation", "Bake rotation channels"),
('SCALE', "Scale", "Bake scale channels"),
('BBONE', "B-Bone", "Bake B-Bone channels"),
('PROPS', "Custom Properties", "Bake custom properties")
),
default={'LOCATION', 'ROTATION', 'SCALE', 'BBONE'},
default={'LOCATION', 'ROTATION', 'SCALE', 'BBONE', 'PROPS'},
)
def execute(self, context):
@@ -278,6 +279,7 @@ class NLA_OT_bake(Operator):
do_rotation='ROTATION' in self.channel_types,
do_scale='SCALE' in self.channel_types,
do_bbone='BBONE' in self.channel_types,
do_custom_props='PROPS' in self.channel_types
)
if bake_options.do_pose and self.only_selected: