Use `context.pose_object` when baking a pose, on on top of the objects in `context.selected_editable_objects`. When in pose mode, it's expected that the pose of the active will be baked, regardless of whether the pose object is selected itself. Pull Request: https://projects.blender.org/blender/blender/pulls/119317