Cleanup: use '_recursive' suffix instead of '_rec'

This convention isn't very clear and wasn't used much.
Use the more verbose term instead.
This commit is contained in:
2020-03-31 22:20:22 +11:00
parent b74e388617
commit 17a409e223
5 changed files with 30 additions and 29 deletions

View File

@@ -207,12 +207,12 @@ typedef struct ApplyArmature_ParentState {
} ApplyArmature_ParentState;
/* Recursive walk for Apply To Selected mode; pstate NULL unless child of an applied bone. */
static void applyarmature_process_selected_rec(bArmature *arm,
bPose *pose,
bPose *pose_eval,
Bone *bone,
ListBase *selected,
ApplyArmature_ParentState *pstate)
static void applyarmature_process_selected_recursive(bArmature *arm,
bPose *pose,
bPose *pose_eval,
Bone *bone,
ListBase *selected,
ApplyArmature_ParentState *pstate)
{
bPoseChannel *pchan = BKE_pose_channel_find_name(pose, bone->name);
const bPoseChannel *pchan_eval = BKE_pose_channel_find_name(pose_eval, bone->name);
@@ -334,7 +334,7 @@ static void applyarmature_process_selected_rec(bArmature *arm,
}
for (Bone *child = bone->childbase.first; child; child = child->next) {
applyarmature_process_selected_rec(arm, pose, pose_eval, child, selected, pstate);
applyarmature_process_selected_recursive(arm, pose, pose_eval, child, selected, pstate);
}
}
@@ -390,7 +390,8 @@ static int apply_armature_pose2bones_exec(bContext *C, wmOperator *op)
if (use_selected) {
/* The selected only mode requires a recursive walk to handle parent-child relations. */
for (Bone *bone = arm->bonebase.first; bone; bone = bone->next) {
applyarmature_process_selected_rec(arm, pose, ob_eval->pose, bone, &selected_bones, NULL);
applyarmature_process_selected_recursive(
arm, pose, ob_eval->pose, bone, &selected_bones, NULL);
}
BLI_freelistN(&selected_bones);