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
Notes: blender-bot 2023-02-14 11:43:46 +01:00
Referenced by issue #37088, Crash with new eyedropper shortcut (e)
1 changed files with 2 additions and 0 deletions

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;