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:
authorCampbell Barton <ideasman42@gmail.com>2012-04-05 09:38:52 +0400
committerCampbell Barton <ideasman42@gmail.com>2012-04-05 09:38:52 +0400
commit0aa6ade75a0004d00f769589ae24ef0b152bba9d (patch)
treef002c01fa8a39f095791fb005a8a13c15b659d08 /source/blender/editors/object/object_shapekey.c
parent8cddb18da05eeed43bedffb9079869cfc9d0f4cd (diff)
fix for error moving absolute shape keys up/down (their position would become out of order)
Diffstat (limited to 'source/blender/editors/object/object_shapekey.c')
-rw-r--r--source/blender/editors/object/object_shapekey.c2
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);