Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-05-01 10:34:40 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-05-01 10:34:40 +0400
commit22c2aef77c63cf4cbe19a1c5a8ea4671ef6440bd (patch)
tree4b4502c3111590f44429da4b55c3e22920c029e6 /source/blender/blenkernel/intern/action.c
parent81dabf76d7392c221decd339945ff3d5678a6023 (diff)
replace inline string searches with BLI_findstring(), strcmp(..., ""), with char comparisons.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r--source/blender/blenkernel/intern/action.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c
index 058227e7cc3..5b49d9a9841 100644
--- a/source/blender/blenkernel/intern/action.c
+++ b/source/blender/blenkernel/intern/action.c
@@ -420,11 +420,11 @@ bPoseChannel *verify_pose_channel(bPose *pose, const char *name)
return NULL;
/* See if this channel exists */
- for (chan=pose->chanbase.first; chan; chan=chan->next) {
- if (!strcmp (name, chan->name))
- return chan;
+ chan= BLI_findstring(&pose->chanbase, name, offsetof(bPoseChannel, name));
+ if(chan) {
+ return chan;
}
-
+
/* If not, create it and add it */
chan = MEM_callocN(sizeof(bPoseChannel), "verifyPoseChannel");