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:
authorChris Want <cwant@ualberta.ca>2004-01-03 05:13:04 +0300
committerChris Want <cwant@ualberta.ca>2004-01-03 05:13:04 +0300
commitc8a5bfc826b497e238df2161effad9ab34325cbe (patch)
treee5316e2ea584a81f15a3d5e763160f52a8666454 /source/blender/src/editconstraint.c
parent33916a24025b52590032e010ac2dd810f4dc9298 (diff)
made verify_pose_channel() return the pose channel that is either
found or created (just removed some silly duplicated work).
Diffstat (limited to 'source/blender/src/editconstraint.c')
-rw-r--r--source/blender/src/editconstraint.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/src/editconstraint.c b/source/blender/src/editconstraint.c
index 702e6a82573..be74c045074 100644
--- a/source/blender/src/editconstraint.c
+++ b/source/blender/src/editconstraint.c
@@ -709,8 +709,7 @@ ListBase *get_constraint_client(char *name, short *clientType, void **clientdata
*clientdata = bone;
if (name)
sprintf (name, "%s>>%s", name, bone->name);
- verify_pose_channel(G.obpose->pose, bone->name);
- chan = get_pose_channel (G.obpose->pose, bone->name);
+ chan = verify_pose_channel(G.obpose->pose, bone->name);
list = &chan->constraints;
}