fix for error moving absolute shape keys up/down (their position would become out of order)

This commit is contained in:
Campbell Barton 2012-04-05 05:38:52 +00:00
parent 8cddb18da0
commit 0aa6ade75a

@ -434,6 +434,8 @@ static int shape_key_move_exec(bContext *C, wmOperator *op)
BLI_insertlinkafter(&key->block, kb_other, kb);
ob->shapenr++;
}
SWAP(float, kb_other->pos, kb->pos) /* for absolute shape keys */
}
DAG_id_tag_update(&ob->id, OB_RECALC_DATA);