Missed warning in previous commit

This commit is contained in:
Jeroen Bakker 2018-06-19 14:07:21 +02:00
parent 1b972a38fe
commit 4b5f3690bb
Notes: blender-bot 2023-02-14 09:03:55 +01:00
Referenced by issue #55533, Drag & Drop into UV/Image Editor
2 changed files with 2 additions and 1 deletions

View File

@ -889,7 +889,7 @@ void ui_icon_ensure_deferred(const bContext *C, const int icon_id, const bool bi
memset(img->rect, 0, size);
di->data.buffer.image = img;
wmJob *wm_job = WM_jobs_get(CTX_wm_manager(C), CTX_wm_window(C), icon, "StudioLight Icon", 0, WM_JOB_TYPE_ANY);
wmJob *wm_job = WM_jobs_get(CTX_wm_manager(C), CTX_wm_window(C), icon, "StudioLight Icon", 0, WM_JOB_TYPE_STUDIOLIGHT);
Icon** tmp = MEM_callocN(sizeof(Icon*), __func__);
*tmp = icon;
WM_jobs_customdata_set(wm_job, tmp, MEM_freeN);

View File

@ -520,6 +520,7 @@ enum {
WM_JOB_TYPE_DPAINT_BAKE,
WM_JOB_TYPE_ALEMBIC,
WM_JOB_TYPE_SHADER_COMPILATION,
WM_JOB_TYPE_STUDIOLIGHT,
/* add as needed, screencast, seq proxy build
* if having hard coded values is a problem */
};