code cleanup: WM naming conventions
[blender.git] / source / blender / editors / render / render_preview.c
index c7f48154970aec2a3d9a15bc3b40f6b181e3856c..03906c99c7463055920b3efa03a4dfab71ffc4f1 100644 (file)
@@ -1031,7 +1031,7 @@ void ED_preview_icon_job(const bContext *C, void *owner, ID *id, unsigned int *r
        ip = MEM_callocN(sizeof(IconPreview), "icon preview");
 
        /* render all resolutions from suspended job too */
-       old_ip = WM_jobs_get_customdata(steve);
+       old_ip = WM_jobs_customdata_get(steve);
        if (old_ip)
                BLI_movelisttolist(&ip->sizes, &old_ip->sizes);
 
@@ -1043,7 +1043,7 @@ void ED_preview_icon_job(const bContext *C, void *owner, ID *id, unsigned int *r
        icon_preview_add_size(ip, rect, sizex, sizey);
 
        /* setup job */
-       WM_jobs_customdata(steve, ip, icon_preview_free);
+       WM_jobs_customdata_set(steve, ip, icon_preview_free);
        WM_jobs_timer(steve, 0.25, NC_MATERIAL, NC_MATERIAL);
        WM_jobs_callbacks(steve, icon_preview_startjob_all_sizes, NULL, NULL, icon_preview_endjob);
 
@@ -1072,7 +1072,7 @@ void ED_preview_shader_job(const bContext *C, void *owner, ID *id, ID *parent, M
        else sp->col[0] = sp->col[1] = sp->col[2] = sp->col[3] = 1.0f;
        
        /* setup job */
-       WM_jobs_customdata(steve, sp, shader_preview_free);
+       WM_jobs_customdata_set(steve, sp, shader_preview_free);
        WM_jobs_timer(steve, 0.1, NC_MATERIAL, NC_MATERIAL);
        WM_jobs_callbacks(steve, common_preview_startjob, NULL, shader_preview_updatejob, NULL);