diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-04-05 09:38:52 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-04-05 09:38:52 +0400 |
commit | 0aa6ade75a0004d00f769589ae24ef0b152bba9d (patch) | |
tree | f002c01fa8a39f095791fb005a8a13c15b659d08 /source | |
parent | 8cddb18da05eeed43bedffb9079869cfc9d0f4cd (diff) |
fix for error moving absolute shape keys up/down (their position would become out of order)
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/object/object_shapekey.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_shapekey.c b/source/blender/editors/object/object_shapekey.c index 959bda22263..40a7a9b6a92 100644 --- a/source/blender/editors/object/object_shapekey.c +++ b/source/blender/editors/object/object_shapekey.c @@ -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); |