diff options
author | Joshua Leung <aligorith@gmail.com> | 2009-10-14 13:08:53 +0400 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2009-10-14 13:08:53 +0400 |
commit | 1ef163f1e0dd1c535c3c9b81670333f02c45b236 (patch) | |
tree | 7712db76cbd30debb515ce4ab70d028197d55b93 /source/blender/editors/animation/keyingsets.c | |
parent | daebfaaa49186886af5bef2b579baed7c4c6e93f (diff) |
UI Templates: ('Any ID' Selector)
Added new template for choosing to use any type of ID-block. The first combo box allows you to choose the type of ID-block that gets used, and the second box allows you to choose the ID-block of the type specified by the first one.
This is currently used for setting the ID-block used for Keying Sets, but the main user for this was intended to be the Drivers UI. However, I still need to clear up a few button-event issues there before I can port this over.
Additional Bugfixes:
* Adding new Keying Set path was setting the active path wrong, meaning that you had to click on the list to get some response after adding
* Bone Groups list was being drawn too long by default (when empty)
Diffstat (limited to 'source/blender/editors/animation/keyingsets.c')
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index a044e867d56..30eaea8b82e 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -219,7 +219,7 @@ static int add_empty_ks_path_exec (bContext *C, wmOperator *op) /* don't use the API method for this, since that checks on values... */ ksp= MEM_callocN(sizeof(KS_Path), "KeyingSetPath Empty"); BLI_addtail(&ks->paths, ksp); - ks->active_path= BLI_countlist(&ks->paths) + 1; + ks->active_path= BLI_countlist(&ks->paths); ksp->groupmode= KSP_GROUP_KSNAME; // XXX? |