added item_enumO() so python menu items can call enum types with string args.
authorCampbell Barton <ideasman42@gmail.com>
Sun, 7 Jun 2009 14:53:08 +0000 (14:53 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sun, 7 Jun 2009 14:53:08 +0000 (14:53 +0000)
commitbb06e311a18518740edec42dce26d377ab16f0d7
tree9d163f631f461c5a53e46a44384eefed125bea76
parenteecf7722b635545f0f5c51b74a15418e3cc9f47e
added item_enumO() so python menu items can call enum types with string args.

Example sequencer menu
self.layout.column()
self.layout.item_enumO("SEQUENCER_OT_effect_strip_add", property='type', value='ADD', text="Effect Strip (Add)")
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_api.c
source/blender/editors/interface/interface_layout.c
source/blender/python/intern/bpy_rna.c