menu to select an enum from an RNA path:
authorCampbell Barton <ideasman42@gmail.com>
Tue, 15 Feb 2011 18:12:41 +0000 (18:12 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Tue, 15 Feb 2011 18:12:41 +0000 (18:12 +0000)
commit884516357453e2530dc0a804cc14c6373e44e39c
tree067ed9aee9d6f10f6cb9c3c93cbe8a83b068993b
parent35c03e85efda280f6ed153c0557b928745b55c85
menu to select an enum from an RNA path:
eg,
   bpy.ops.wm.context_menu_enum(data_path="scene.tool_settings.vertex_paint.brush.stroke_method")

This saves us defining operators only for menus.
release/scripts/op/wm.py