From 88308e108ebea1d70b51e167aa4d7432e99aeadb Mon Sep 17 00:00:00 2001 From: Janne Nylander Date: Fri, 10 Oct 2025 17:29:08 +0200 Subject: [PATCH] Fix #147739: Python animation baking script was checking bone selection from wrong type of bone The script was checking if a bone was selected via Bone.select. As of 5.0, this is not available. Instead, PoseBone.select should be used. Pull Request: https://projects.blender.org/blender/blender/pulls/147743 --- scripts/modules/bpy_extras/anim_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/modules/bpy_extras/anim_utils.py b/scripts/modules/bpy_extras/anim_utils.py index d0fbfd7f108..eb5475fd9cd 100644 --- a/scripts/modules/bpy_extras/anim_utils.py +++ b/scripts/modules/bpy_extras/anim_utils.py @@ -465,7 +465,7 @@ def bake_action_iter( frame=f, group_name="Armature Custom Properties") for name, pbone in obj.pose.bones.items(): - if bake_options.only_selected and not pbone.bone.select: + if bake_options.only_selected and not pbone.select: continue if bake_options.do_constraint_clear: