Fix T48813: Custom icon is not drawn on header / addons prefs panel.

For now use 'brute force' and refresh whole UI when new icons get rendered.

See comment of T48813 for ideas about how to handle that in future (2.8 project ?).
This commit is contained in:
Bastien Montagne 2016-07-26 17:55:18 +02:00
parent f31f740bd0
commit f3f10e4515
Notes: blender-bot 2023-02-14 07:46:43 +01:00
Referenced by issue #48813, Custom icon is not drawn on header / addons prefs panel
1 changed files with 1 additions and 1 deletions

View File

@ -1210,7 +1210,7 @@ void ED_preview_icon_job(const bContext *C, void *owner, ID *id, unsigned int *r
/* setup job */
WM_jobs_customdata_set(wm_job, ip, icon_preview_free);
WM_jobs_timer(wm_job, 0.1, NC_MATERIAL, NC_MATERIAL);
WM_jobs_timer(wm_job, 0.1, NC_WINDOW , NC_WINDOW);
WM_jobs_callbacks(wm_job, icon_preview_startjob_all_sizes, NULL, NULL, icon_preview_endjob);
WM_jobs_start(CTX_wm_manager(C), wm_job);