Fix T37088: Crash with eyedropper (shortcut E)

This commit is contained in:
Campbell Barton
2013-11-19 05:49:39 +11:00
parent 6f3f107c59
commit df060e5d21

View File

@@ -6729,6 +6729,8 @@ static int ui_handle_button_event(bContext *C, const wmEvent *event, uiBut *but)
// retval = WM_UI_HANDLER_BREAK; XXX why ?
}
/* may have been re-allocated above (eyedropper for eg) */
data = but->active;
if (data->state == BUTTON_STATE_EXIT) {
uiBut *post_but = data->postbut;
uiButtonActivateType post_type = data->posttype;