From aec9e0e1b61a10e62612522bf3f86e0afd7294a3 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Sun, 29 Mar 2020 16:33:51 +1100 Subject: Cleanup: spelling, comments --- source/blender/editors/armature/armature_add.c | 6 +++--- source/blender/editors/armature/armature_relations.c | 2 +- source/blender/editors/armature/armature_select.c | 2 +- source/blender/editors/armature/armature_utils.c | 6 +++--- source/blender/editors/armature/pose_select.c | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) (limited to 'source/blender/editors/armature') diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c index e87040279af..1105633f47e 100644 --- a/source/blender/editors/armature/armature_add.c +++ b/source/blender/editors/armature/armature_add.c @@ -742,7 +742,7 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op) } } - /* Find the selected bones and duplicate them as needed, with mirrored name */ + /* Find the selected bones and duplicate them as needed, with mirrored name. */ for (ebone_iter = arm->edbo->first; ebone_iter && ebone_iter != ebone_first_dupe; ebone_iter = ebone_iter->next) { if (EBONE_VISIBLE(arm, ebone_iter) && (ebone_iter->flag & BONE_SELECTED) && @@ -765,7 +765,7 @@ static int armature_symmetrize_exec(bContext *C, wmOperator *op) } } - /* Run through the list and fix the pointers */ + /* Run through the list and fix the pointers. */ for (ebone_iter = arm->edbo->first; ebone_iter && ebone_iter != ebone_first_dupe; ebone_iter = ebone_iter->next) { if (ebone_iter->temp.ebone) { @@ -1116,7 +1116,7 @@ static int armature_bone_primitive_add_exec(bContext *C, wmOperator *op) ED_armature_edit_deselect_all(obedit); - /* Create a bone */ + /* Create a bone. */ bone = ED_armature_ebone_add(obedit->data, name); copy_v3_v3(bone->head, curs); diff --git a/source/blender/editors/armature/armature_relations.c b/source/blender/editors/armature/armature_relations.c index 2c2bf3cd283..4580d2c30ae 100644 --- a/source/blender/editors/armature/armature_relations.c +++ b/source/blender/editors/armature/armature_relations.c @@ -280,7 +280,7 @@ int join_armature_exec(bContext *C, wmOperator *op) float mat[4][4], oimat[4][4]; bool ok = false; - /* Ensure we're not in editmode and that the active object is an armature*/ + /* Ensure we're not in edit-mode and that the active object is an armature. */ if (!ob_active || ob_active->type != OB_ARMATURE) { return OPERATOR_CANCELLED; } diff --git a/source/blender/editors/armature/armature_select.c b/source/blender/editors/armature/armature_select.c index 21eccd2ca1f..4b66203da01 100644 --- a/source/blender/editors/armature/armature_select.c +++ b/source/blender/editors/armature/armature_select.c @@ -1003,7 +1003,7 @@ static int armature_de_select_all_exec(bContext *C, wmOperator *op) CTX_DATA_END; } - /* Set the flags */ + /* Set the flags. */ CTX_DATA_BEGIN (C, EditBone *, ebone, visible_bones) { /* ignore bone if selection can't change */ switch (action) { diff --git a/source/blender/editors/armature/armature_utils.c b/source/blender/editors/armature/armature_utils.c index 76361f6785b..58ceef5b7db 100644 --- a/source/blender/editors/armature/armature_utils.c +++ b/source/blender/editors/armature/armature_utils.c @@ -562,7 +562,7 @@ static EditBone *make_boneList_rec(ListBase *edbo, BLI_addtail(edbo, eBone); - /* Add children if necessary */ + /* Add children if necessary. */ if (curBone->childbase.first) { eBoneTest = make_boneList_rec(edbo, &curBone->childbase, eBone, actBone); if (eBoneTest) { @@ -721,7 +721,7 @@ void ED_armature_from_edit(Main *bmain, bArmature *arm) } } - /* Copy the bones from the editData into the armature */ + /* Copy the bones from the edit-data into the armature. */ for (eBone = arm->edbo->first; eBone; eBone = eBone->next) { newBone = MEM_callocN(sizeof(Bone), "bone"); eBone->temp.bone = newBone; /* Associate the real Bones with the EditBones */ @@ -819,7 +819,7 @@ void ED_armature_edit_free(struct bArmature *arm) { EditBone *eBone; - /* Clear the editbones list */ + /* Clear the edit-bones list. */ if (arm->edbo) { if (arm->edbo->first) { for (eBone = arm->edbo->first; eBone; eBone = eBone->next) { diff --git a/source/blender/editors/armature/pose_select.c b/source/blender/editors/armature/pose_select.c index 07be2baf1ae..475640fa37c 100644 --- a/source/blender/editors/armature/pose_select.c +++ b/source/blender/editors/armature/pose_select.c @@ -497,7 +497,7 @@ static int pose_de_select_all_exec(bContext *C, wmOperator *op) Object *ob_prev = NULL; - /* Set the flags */ + /* Set the flags. */ CTX_DATA_BEGIN_WITH_ID (C, bPoseChannel *, pchan, visible_pose_bones, Object *, ob) { bArmature *arm = ob->data; pose_do_bone_select(pchan, action); -- cgit v1.2.3