diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 12:15:53 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-01-16 12:15:53 +0400 |
commit | af93ebcb503293e382f74c2d33554504269d4815 (patch) | |
tree | e4490d7be44e3532e1655f82c7a7aeb11cc5785c /source/blender/editors/armature | |
parent | bb1a7e4d8722fda09a3294eea56a537b6f043dd3 (diff) |
Code Cleanup: style and redundant casts
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r-- | source/blender/editors/armature/armature_naming.c | 3 | ||||
-rw-r--r-- | source/blender/editors/armature/pose_lib.c | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/armature/armature_naming.c b/source/blender/editors/armature/armature_naming.c index a4b40f64859..c214dc35fbf 100644 --- a/source/blender/editors/armature/armature_naming.c +++ b/source/blender/editors/armature/armature_naming.c @@ -113,8 +113,9 @@ static void constraint_bone_name_fix(Object *ob, ListBase *conlist, const char * for (ct = targets.first; ct; ct = ct->next) { if (ct->tar == ob) { - if (!strcmp(ct->subtarget, oldname) ) + if (STREQ(ct->subtarget, oldname)) { BLI_strncpy(ct->subtarget, newname, MAXBONENAME); + } } } diff --git a/source/blender/editors/armature/pose_lib.c b/source/blender/editors/armature/pose_lib.c index 3a9dd3c9748..7a825b3805c 100644 --- a/source/blender/editors/armature/pose_lib.c +++ b/source/blender/editors/armature/pose_lib.c @@ -920,7 +920,7 @@ static void poselib_keytag_pose(bContext *C, Scene *scene, tPoseLib_PreviewData pchan = BKE_pose_channel_find_name(pose, agrp->name); if (pchan) { - if ( (pld->selcount == 0) || ((pchan->bone) && (pchan->bone->flag & BONE_SELECTED)) ) { + if ((pld->selcount == 0) || ((pchan->bone) && (pchan->bone->flag & BONE_SELECTED))) { if (autokey) { /* add datasource override for the PoseChannel, to be used later */ ANIM_relative_keyingset_add_source(&dsources, &pld->ob->id, &RNA_PoseBone, pchan); |