Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Montagne <montagne29@wanadoo.fr>2013-04-15 19:01:12 +0400
committerBastien Montagne <montagne29@wanadoo.fr>2013-04-15 19:01:12 +0400
commit03d631986234d476d4d763b0fded289b482257b6 (patch)
tree1295c6b162c73cd529bd16b3148b2a43bb02227f /source/blender/bmesh/operators/bmo_dupe.c
parentf6604f7612af998ee275fa0650c5c56f6d208074 (diff)
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.
Diffstat (limited to 'source/blender/bmesh/operators/bmo_dupe.c')
0 files changed, 0 insertions, 0 deletions