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:
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
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue