Fix #19371: vertex group dropdown crash, own fault in commit yesterday.

This commit is contained in:
Brecht Van Lommel 2009-09-17 14:37:08 +00:00
parent 7783c286b9
commit 09652d8c05

@ -246,7 +246,7 @@ static void ui_apply_but_func(bContext *C, uiBut *but)
if(but->func || but->funcN || block->handle_func || but->rename_func || (but->type == BUTM && block->butm_func) || but->optype || but->rnaprop) {
after= MEM_callocN(sizeof(uiAfterFunc), "uiAfterFunc");
if(ELEM(but, but->func_arg1, but->func_arg2)) {
if(but->func && ELEM(but, but->func_arg1, but->func_arg2)) {
/* exception, this will crash due to removed button otherwise */
but->func(C, but->func_arg1, but->func_arg2);
}