Patch #4980, by Joshua Leung (aligorith)
This enables finding data in the Outliner. Usage: Fkey (partial strings), CTRL+Fkey (partial strings, case sensitive). SHIFT+Fkey to repeat a search, this cycles around. Extra changes: - button popups to enter strings now starts activated. - outliner either shows for Armature the Bones, or Posechannels or Editbones, depending the mode. Was needed to make searches meaningful. Although Joshua did very good work on the key functions, there were a couple of issues in his code, and problems in Outliner code, that didn't make it all work nicely. So, this is quite a revised patch. :) Full review log can be found in the patch tracker.
This commit is contained in:
@@ -306,11 +306,12 @@ short sbutton(char *var, float min, float max, char *str)
|
||||
x1=mval[0]-150;
|
||||
y1=mval[1]-20;
|
||||
|
||||
uiDefButC(block, TEX, 0, str, x1+5,y1+10,125,20, var,(float)min,(float)max, 0, 0, "");
|
||||
uiDefButC(block, TEX, 2, str, x1+5,y1+10,125,20, var,(float)min,(float)max, 0, 0, "");
|
||||
uiDefBut(block, BUT, 1, "OK", x1+136,y1+10,25,20, NULL, 0, 0, 0, 0, "");
|
||||
|
||||
uiBoundsBlock(block, 5);
|
||||
|
||||
|
||||
mainqenter_ext(BUT_ACTIVATE, 2, 0); /* note, button id '2' is asking for errors some day! */
|
||||
ret= uiDoBlocks(&listb, 0);
|
||||
|
||||
if(ret==UI_RETURN_OK) return 1;
|
||||
|
||||
Reference in New Issue
Block a user