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:
authorBastien Montagne <montagne29@wanadoo.fr>2014-08-10 19:30:07 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2014-08-10 19:30:07 +0400
commit93ed7799500765116fa0c87fedfbb17d2da5df37 (patch)
treee19ccf9e541a2f30bc548a35d0a246ef3bd2fe6e /source/blender/editors/object/object_shapekey.c
parent3cd2c6145ae12956757141a1ea1f58f5eddf0db1 (diff)
Minor tweak to own previous shapekey_move commit.
Diffstat (limited to 'source/blender/editors/object/object_shapekey.c')
-rw-r--r--source/blender/editors/object/object_shapekey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/object/object_shapekey.c b/source/blender/editors/object/object_shapekey.c
index 9b6f6ad4886..85104c14395 100644
--- a/source/blender/editors/object/object_shapekey.c
+++ b/source/blender/editors/object/object_shapekey.c
@@ -494,7 +494,7 @@ static int shape_key_move_exec(bContext *C, wmOperator *op)
{
KeyBlock *kb, *kb_other, *kb_iter;
const int type = RNA_enum_get(op->ptr, "type");
- const int shape_tot = BLI_countlist(&key->block);
+ const int shape_tot = key->totkey;
const int shapenr_act = ob->shapenr - 1;
const int shapenr_swap = (shape_tot + shapenr_act + type) % shape_tot;