diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-16 14:18:59 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2011-12-16 14:18:59 +0400 |
commit | e9ab58ad8f0fbcb84a08e8013d4b024bea648f96 (patch) | |
tree | 5ff4e94bbbab8b5d2ef19559bf0a7dd3045bb468 /source/blender/editors/animation | |
parent | 2253b63c979fbfbbb6f06c93ede85d9b9b6caddf (diff) |
Fixed incorrect usage of enum as integer
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r-- | source/blender/editors/animation/keyingsets.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/keyingsets.c b/source/blender/editors/animation/keyingsets.c index 682b40affc2..25432260387 100644 --- a/source/blender/editors/animation/keyingsets.c +++ b/source/blender/editors/animation/keyingsets.c @@ -776,7 +776,7 @@ void ANIM_keying_sets_menu_setup (bContext *C, const char title[], const char op * - only include entry if it exists */ if (scene->active_keyingset) { - uiItemIntO(layout, "Active Keying Set", ICON_NONE, op_name, "type", i++); + uiItemEnumO(layout, op_name, "Active Keying Set", ICON_NONE, "type", i++); uiItemS(layout); } else @@ -788,7 +788,7 @@ void ANIM_keying_sets_menu_setup (bContext *C, const char title[], const char op if (scene->keyingsets.first) { for (ks= scene->keyingsets.first; ks; ks=ks->next, i++) { if (ANIM_keyingset_context_ok_poll(C, ks)) - uiItemIntO(layout, ks->name, ICON_NONE, op_name, "type", i); + uiItemEnumO(layout, op_name, ks->name, ICON_NONE, "type", i); } uiItemS(layout); } @@ -798,7 +798,7 @@ void ANIM_keying_sets_menu_setup (bContext *C, const char title[], const char op for (ks= builtin_keyingsets.first; ks; ks=ks->next, i--) { /* only show KeyingSet if context is suitable */ if (ANIM_keyingset_context_ok_poll(C, ks)) - uiItemIntO(layout, ks->name, ICON_NONE, op_name, "type", i); + uiItemEnumO(layout, op_name, ks->name, ICON_NONE, "type", i); } uiPupMenuEnd(C, pup); |