Cleanup: remove window manager argument for paint cursor API
This caused an additional argument when exiting object modes and many other low level functions which don't need to access context. This simplifies fixing T77073.
This commit is contained in:
@@ -3235,12 +3235,12 @@ static void toggle_particle_cursor(bContext *C, int enable)
|
||||
ParticleEditSettings *pset = PE_settings(CTX_data_scene(C));
|
||||
|
||||
if (pset->paintcursor && !enable) {
|
||||
WM_paint_cursor_end(CTX_wm_manager(C), pset->paintcursor);
|
||||
WM_paint_cursor_end(pset->paintcursor);
|
||||
pset->paintcursor = NULL;
|
||||
}
|
||||
else if (enable) {
|
||||
pset->paintcursor = WM_paint_cursor_activate(
|
||||
CTX_wm_manager(C), SPACE_VIEW3D, RGN_TYPE_WINDOW, PE_poll_view3d, brush_drawcursor, NULL);
|
||||
SPACE_VIEW3D, RGN_TYPE_WINDOW, PE_poll_view3d, brush_drawcursor, NULL);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user