Fix #19371: vertex group dropdown crash, own fault in commit yesterday.
authorBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 17 Sep 2009 14:37:08 +0000 (14:37 +0000)
committerBrecht Van Lommel <brechtvanlommel@pandora.be>
Thu, 17 Sep 2009 14:37:08 +0000 (14:37 +0000)
source/blender/editors/interface/interface_handlers.c

index dbf5669b3267808a15e0f822b5ee9c6019621fbc..246058ceacc957a167537f7b024c8a8b409eb9ef 100644 (file)
@@ -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);
                }