[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56573] trunk/blender/source/blender/ editors/object/object_shapekey.c: Fix #35093: New Basis shape key doesn' t act as Basis
Sergey Sharybin
sergey.vfx at gmail.com
Wed May 8 15:16:45 CEST 2013
Revision: 56573
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56573
Author: nazgul
Date: 2013-05-08 13:16:45 +0000 (Wed, 08 May 2013)
Log Message:
-----------
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.
Modified Paths:
--------------
trunk/blender/source/blender/editors/object/object_shapekey.c
Modified: trunk/blender/source/blender/editors/object/object_shapekey.c
===================================================================
--- trunk/blender/source/blender/editors/object/object_shapekey.c 2013-05-08 13:16:39 UTC (rev 56572)
+++ trunk/blender/source/blender/editors/object/object_shapekey.c 2013-05-08 13:16:45 UTC (rev 56573)
@@ -460,6 +460,9 @@
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);
More information about the Bf-blender-cvs
mailing list