Cleanup: unused variable warning

This commit is contained in:
Campbell Barton 2021-12-16 11:38:06 +11:00
parent b265b447b6
commit 366ec5f0f8
1 changed files with 2 additions and 2 deletions

View File

@ -1795,7 +1795,7 @@ void ED_preview_shader_job(const bContext *C,
wmJob *wm_job;
ShaderPreview *sp;
Scene *scene = CTX_data_scene(C);
short id_type = GS(id->name);
const ID_Type id_type = GS(id->name);
BLI_assert(BKE_previewimg_id_supports_jobs(id));
@ -1834,7 +1834,7 @@ void ED_preview_shader_job(const bContext *C,
* once with custom preview .blend path for external engines */
/* grease pencil use its own preview file */
if (GS(id->name) == ID_MA) {
if (id_type == ID_MA) {
ma = (Material *)id;
}