Minor tweak to own previous shapekey_move commit.

This commit is contained in:
2014-08-10 17:30:07 +02:00
parent 3cd2c6145a
commit 93ed779950

View File

@@ -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;