fix for accessing the keying set menu as an enum rather than in int
authorCampbell Barton <ideasman42@gmail.com>
Sun, 11 Dec 2011 17:10:46 +0000 (17:10 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 11 Dec 2011 17:10:46 +0000 (17:10 +0000)
source/blender/editors/animation/keyingsets.c

index 3b65e7772008fe6037608701cea93ec9a1f1684b..682b40affc2979a25867d9794358667216a62c64 100644 (file)
@@ -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))
-                       uiItemEnumO_value(layout, ks->name, ICON_NONE, op_name, "type", i);
+                       uiItemIntO(layout, ks->name, ICON_NONE, op_name, "type", i);
        }
        
        uiPupMenuEnd(C, pup);