diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-03-15 20:24:05 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-03-15 20:26:23 +0400 |
commit | 2097e621edcf7658895b9f6ba9cc4e51f5538369 (patch) | |
tree | 9f112e8a2b35fed01734ed355d3832cd857de826 /source/blender/editors/object/object_constraint.c | |
parent | 38244166b03bc4a01d8c0b99e2fd2cb2c9b60012 (diff) |
Code cleanup: use r_ prefix for return args
Diffstat (limited to 'source/blender/editors/object/object_constraint.c')
-rw-r--r-- | source/blender/editors/object/object_constraint.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/editors/object/object_constraint.c b/source/blender/editors/object/object_constraint.c index 9f77d3ee12c..1e7e543ccb8 100644 --- a/source/blender/editors/object/object_constraint.c +++ b/source/blender/editors/object/object_constraint.c @@ -105,10 +105,10 @@ ListBase *get_active_constraints(Object *ob) } /* Find the list that a given constraint belongs to, and/or also get the posechannel this is from (if applicable) */ -ListBase *get_constraint_lb(Object *ob, bConstraint *con, bPoseChannel **pchan_r) +ListBase *get_constraint_lb(Object *ob, bConstraint *con, bPoseChannel **r_pchan) { - if (pchan_r) - *pchan_r = NULL; + if (r_pchan) + *r_pchan = NULL; if (ELEM(NULL, ob, con)) return NULL; @@ -128,8 +128,8 @@ ListBase *get_constraint_lb(Object *ob, bConstraint *con, bPoseChannel **pchan_r for (pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) { if ((BLI_findindex(&pchan->constraints, con) != -1)) { - if (pchan_r) - *pchan_r = pchan; + if (r_pchan) + *r_pchan = pchan; return &pchan->constraints; } |