diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2014-08-10 19:30:07 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2014-08-10 19:30:07 +0400 |
commit | 93ed7799500765116fa0c87fedfbb17d2da5df37 (patch) | |
tree | e19ccf9e541a2f30bc548a35d0a246ef3bd2fe6e | |
parent | 3cd2c6145ae12956757141a1ea1f58f5eddf0db1 (diff) |
Minor tweak to own previous shapekey_move commit.
-rw-r--r-- | source/blender/editors/object/object_shapekey.c | 2 |
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; |