2.5
authorTon Roosendaal <ton@blender.org>
Wed, 24 Dec 2008 14:52:17 +0000 (14:52 +0000)
committerTon Roosendaal <ton@blender.org>
Wed, 24 Dec 2008 14:52:17 +0000 (14:52 +0000)
commit3c612bc0e237c48bc8a3f6fdc20cec4a3b140228
treecf36dfbf332248f0960d9f21e9fd4d28c08177f0
parent9bb7babd2c17f4be6aea2ffbfe89e18fffbd0341
2.5

Fix: popup menus were not freeing operators.
Made a new Popup menu call for this case:

uiPupmenuOperator(C, maxrow, op, propname, menustr);

It will set enum "propname" to the menu item and call operator,
register it optionally and free it. Use it in "invoke" calls.

Next: automatic menu generating for enum properties!
12 files changed:
source/blender/editors/include/UI_interface.h
source/blender/editors/interface/interface_handlers.c
source/blender/editors/interface/interface_regions.c
source/blender/editors/object/object_edit.c
source/blender/editors/space_view3d/view3d_header.c
source/blender/python/intern/bpy_operator.c
source/blender/windowmanager/WM_api.h
source/blender/windowmanager/intern/wm.c
source/blender/windowmanager/intern/wm_event_system.c
source/blender/windowmanager/intern/wm_keymap.c
source/blender/windowmanager/intern/wm_operators.c
source/blender/windowmanager/wm.h