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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2009-09-17 18:37:08 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2009-09-17 18:37:08 +0400
commit09652d8c05f30015518205ea6bb7ac0ee3d3745f (patch)
tree1c803e508610aa638a3eaaff4a2eb26a92e10c38
parent7783c286b9ac3622972ba979f80789aee8fabaed (diff)
Fix #19371: vertex group dropdown crash, own fault in commit yesterday.
-rw-r--r--source/blender/editors/interface/interface_handlers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/interface/interface_handlers.c b/source/blender/editors/interface/interface_handlers.c
index dbf5669b326..246058ceacc 100644
--- a/source/blender/editors/interface/interface_handlers.c
+++ b/source/blender/editors/interface/interface_handlers.c
@@ -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);
}