Blender Git Commit Log

Git Commits -> Revision 6754d7a

Revision 6754d7a by Sybren A. Stüvel (master)
July 20, 2021, 15:12 (GMT)
Pose Library: remove assumption about Action group names

Remove the assumption of the pose library that Action groups are named
after the bones in the armature. Even though this assumption is correct
when the keys are created by Blender, action groups can be renamed. Keys
created by Python scripts can also use arbitrary group names.

Since there is more code in Blender making this assumption, and looping
over selected bones is also a common occurrence, this commit contains
some generic functionality to aid in this:

- `BKE_armature_find_selected_bones`: function that iterates over all
bones in an armature and calls a callback for each selected one. It
returns a struct with info about the selection states (all or no bones
selected).
- `BKE_armature_find_selected_bone_names(armature)` uses the above
function to return a set of selected bone names.
- `BKE_pose_find_fcurves_with_bones()` calls a callback for each FCurve
in an Action that targets a bone, also passing it the bone name.

Commit Details:

Full Hash: 6754d7aef613ee2eb12baa85b7f99969045c91e2
Parent Commit: c4f71f3
Lines Changed: +327, -70

4 Added Paths:

/source/blender/blenkernel/BKE_action.hh (+35, -0) (View)
/source/blender/blenkernel/BKE_armature.hh (+48, -0) (View)
/source/blender/blenkernel/intern/action_bones.cc (+48, -0) (View)
/source/blender/blenkernel/intern/armature_selection.cc (+78, -0) (View)

4 Modified Paths:

/source/blender/blenkernel/CMakeLists.txt (+4, -0) (Diff)
/source/blender/blenkernel/intern/armature_pose.cc (+11, -45) (Diff)
/source/blender/blenkernel/intern/armature_test.cc (+76, -1) (Diff)
/source/blender/editors/armature/pose_backup.cc (+27, -24) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021