Blender Git Loki
Git Commits -> Revision 03d6319
Revision 03d6319 by Bastien Montagne (master) April 15, 2013, 15:01 (GMT) |
Fix: when using a search menu with an operator's enum prop, the operator was previously always executed with default options (appart from the search-set enum, of course). Now we store the op's properties in search button, so that you can specify non-default options (as it was already possible with e.g. pop-up menu from an operator's enum prop). To achieve this, some code (callbacks and search button creation) was moved from wm_operators.c to interface/interface.c, and a new UI function was added, uiDefSearchButO_ptr. Note: This new code uses the fact that uiButHandleFunc callbacks get executed before operator when one of its arg is the button itself! Many thanks to Campbell who helped me a lot with this patch! Cleanup: also removed two unused pointers from uiBut struct. |
Commit Details:
Full Hash: 03d631986234d476d4d763b0fded289b482257b6
SVN Revision: 56063
Parent Commit: f6604f7
Lines Changed: +81, -58
5 Modified Paths:
/source/blender/editors/include/UI_interface.h (+3, -0) (Diff)
/source/blender/editors/interface/interface.c (+76, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+0, -2) (Diff)
/source/blender/editors/interface/interface_intern.h (+0, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -54) (Diff)
/source/blender/editors/interface/interface.c (+76, -0) (Diff)
/source/blender/editors/interface/interface_handlers.c (+0, -2) (Diff)
/source/blender/editors/interface/interface_intern.h (+0, -2) (Diff)
/source/blender/windowmanager/intern/wm_operators.c (+2, -54) (Diff)