Using "search menu" for browsing ID data (material, texture, brush)
wasn't sending an undo-push after use. This messed up undo or redo.
This commit is contained in:
Ton Roosendaal
2011-03-18 16:09:29 +00:00
parent 60ce95f562
commit eeb94697d5

View File

@@ -191,6 +191,8 @@ static uiBlock *id_search_menu(bContext *C, ARegion *ar, void *arg_litem)
/* give search-field focus */
uiButSetFocusOnEnter(win, but);
/* this type of search menu requires undo */
but->flag |= UI_BUT_UNDO;
return block;
}