diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-08 17:16:45 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-05-08 17:16:45 +0400 |
commit | a9a0e2d98f4093244157a6ceb9d9960ba813b2ce (patch) | |
tree | 4857553208dd7d7e9db0698c6a3e02c22e62bacc /source/blender/editors/object/object_shapekey.c | |
parent | a63be29da36fcf191a83de1d784e3621c883c2a2 (diff) |
Fix #35093: New Basis shape key doesn't act as Basis
Made it so Move Shape Key ensures first key is a refkey,
so now it's possible to change basis key from the interface.
It's still needed to manually teak key's relative_key,
not sure whether there's a reliable automated way to tweak
this value when bassi key is changing.
Diffstat (limited to 'source/blender/editors/object/object_shapekey.c')
-rw-r--r-- | source/blender/editors/object/object_shapekey.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/object/object_shapekey.c b/source/blender/editors/object/object_shapekey.c index 6a511d4d924..6fd2054637d 100644 --- a/source/blender/editors/object/object_shapekey.c +++ b/source/blender/editors/object/object_shapekey.c @@ -460,6 +460,9 @@ static int shape_key_move_exec(bContext *C, wmOperator *op) SWAP(float, kb_other->pos, kb->pos); /* for absolute shape keys */ } + /* First key is refkey, matches interface and BKE_key_sort */ + key->refkey = key->block.first; + DAG_id_tag_update(&ob->id, OB_RECALC_DATA); WM_event_add_notifier(C, NC_OBJECT | ND_DRAW, ob); |