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:
authorJulian Eisel <eiseljulian@gmail.com>2016-09-18 22:54:24 +0300
committerJulian Eisel <eiseljulian@gmail.com>2016-09-18 22:54:24 +0300
commit404a427dfdee0f5300b7c4f375cd7ff4a0b8bc8e (patch)
tree2c062fcbb99d41687e434078f1141366af30d985 /source/blender/editors/armature
parent572bc1364ca9d978edf5aee991849dd4f8e56a52 (diff)
Minor corrections for previous commit
Was using wrong argument name in doxygen comment. Also reduced scope of vars. Sorry for the noise :/
Diffstat (limited to 'source/blender/editors/armature')
-rw-r--r--source/blender/editors/armature/pose_group.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/armature/pose_group.c b/source/blender/editors/armature/pose_group.c
index 85cff2e4df5..c492772b282 100644
--- a/source/blender/editors/armature/pose_group.c
+++ b/source/blender/editors/armature/pose_group.c
@@ -292,7 +292,6 @@ static int group_move_exec(bContext *C, wmOperator *op)
bPoseChannel *pchan;
bActionGroup *grp;
int dir = RNA_enum_get(op->ptr, "direction");
- int grpIndexA, grpIndexB;
if (ELEM(NULL, ob, pose))
return OPERATOR_CANCELLED;
@@ -305,9 +304,10 @@ static int group_move_exec(bContext *C, wmOperator *op)
return OPERATOR_CANCELLED;
/* move bone group */
- grpIndexA = pose->active_group;
if (BLI_listbase_link_move(&pose->agroups, grp, dir)) {
- grpIndexB = grpIndexA + dir;
+ int grpIndexA = pose->active_group;
+ int grpIndexB = grpIndexA + dir;
+
pose->active_group += dir;
/* fix changed bone group indices in bones (swap grpIndexA with grpIndexB) */
for (pchan = ob->pose->chanbase.first; pchan; pchan = pchan->next) {