diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-08-01 10:03:08 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-08-01 10:03:08 +0400 |
commit | 78bbe5c479f80a331528d730486770c4f46e74fc (patch) | |
tree | e8df0deeb042a576d118d989aff457b54169e7a4 /source/blender/editors/object | |
parent | dc90e758b4c91a0c7e6406498301e82ccecf2fdb (diff) |
2.5 - Giving shapekeys UI a bit of attention
* Separated value and range sliders for the value into two separate rows. Value comes before the range settings since it's used more often, and is drawn as a slider instead.
* Tweaked ranges for the sliders so that they will work sanely.
Diffstat (limited to 'source/blender/editors/object')
-rw-r--r-- | source/blender/editors/object/editkey.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/editors/object/editkey.c b/source/blender/editors/object/editkey.c index f38c03fb284..82194a4c3b4 100644 --- a/source/blender/editors/object/editkey.c +++ b/source/blender/editors/object/editkey.c @@ -164,14 +164,20 @@ static KeyBlock *add_keyblock(Scene *scene, Key *key) kb= MEM_callocN(sizeof(KeyBlock), "Keyblock"); BLI_addtail(&key->block, kb); kb->type= KEY_CARDINAL; + tot= BLI_countlist(&key->block); if(tot==1) strcpy(kb->name, "Basis"); else sprintf(kb->name, "Key %d", tot-1); + + // XXX this is old anim system stuff? (i.e. the 'index' of the shapekey) kb->adrcode= tot-1; key->totkey++; if(key->totkey==1) key->refkey= kb; + kb->slidermin= 0.0f; + kb->slidermax= 1.0f; + // XXX kb->pos is the confusing old horizontal-line RVK crap in old IPO Editor... if(key->type == KEY_RELATIVE) kb->pos= curpos+0.1; |