Fix T74585: Crash when scrolling viewport shading pop-up
Was dereferencing NULL pointer. Mistake from d5572eacc5
.
This commit is contained in:
parent
9f48852ba4
commit
dc3ff1db3f
Notes:
blender-bot
2023-02-14 05:53:38 +01:00
Referenced by issue #74585, Crash when scrolling Viewport Shading pop-up
|
@ -9616,7 +9616,7 @@ static int ui_handle_menu_event(bContext *C,
|
|||
but->active->cancel = true;
|
||||
button_activate_exit(C, but, but->active, false, false);
|
||||
}
|
||||
WM_event_add_mousemove(but->active->window);
|
||||
WM_event_add_mousemove(CTX_wm_window(C));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue