Cleanup: Remove unused depsgraph pointer
This commit is contained in:
@@ -153,7 +153,6 @@ typedef struct ShaderPreview {
|
||||
short *stop, *do_update;
|
||||
|
||||
Scene *scene;
|
||||
Depsgraph *depsgraph;
|
||||
ID *id, *id_copy;
|
||||
ID *parent;
|
||||
MTex *slot;
|
||||
@@ -185,7 +184,6 @@ typedef struct IconPreviewSize {
|
||||
typedef struct IconPreview {
|
||||
Main *bmain;
|
||||
Scene *scene;
|
||||
Depsgraph *depsgraph;
|
||||
void *owner;
|
||||
ID *id, *id_copy;
|
||||
ListBase sizes;
|
||||
@@ -1229,7 +1227,6 @@ static void icon_preview_startjob_all_sizes(void *customdata,
|
||||
|
||||
/* construct shader preview from image size and previewcustomdata */
|
||||
sp->scene = ip->scene;
|
||||
sp->depsgraph = ip->depsgraph;
|
||||
sp->owner = ip->owner;
|
||||
sp->sizex = cur_size->sizex;
|
||||
sp->sizey = cur_size->sizey;
|
||||
@@ -1372,7 +1369,6 @@ void ED_preview_icon_job(const bContext *C,
|
||||
/* customdata for preview thread */
|
||||
ip->bmain = CTX_data_main(C);
|
||||
ip->scene = CTX_data_scene(C);
|
||||
ip->depsgraph = CTX_data_depsgraph(C);
|
||||
ip->owner = owner;
|
||||
ip->id = id;
|
||||
ip->id_copy = duplicate_ids(id);
|
||||
@@ -1439,7 +1435,6 @@ void ED_preview_shader_job(const bContext *C,
|
||||
|
||||
/* customdata for preview thread */
|
||||
sp->scene = scene;
|
||||
sp->depsgraph = CTX_data_depsgraph(C);
|
||||
sp->owner = owner;
|
||||
sp->sizex = sizex;
|
||||
sp->sizey = sizey;
|
||||
|
||||
Reference in New Issue
Block a user