Cleanup: remove unused Image space curves
Caused leaks reading old files, was read/written but not freed, remove since its unused.
This commit is contained in:
parent
e0f314d750
commit
435fa9a015
|
@ -7038,11 +7038,7 @@ static bool direct_link_screen(FileData *fd, bScreen *sc)
|
|||
}
|
||||
else if (sl->spacetype == SPACE_IMAGE) {
|
||||
SpaceImage *sima = (SpaceImage *)sl;
|
||||
|
||||
sima->cumap = newdataadr(fd, sima->cumap);
|
||||
if (sima->cumap)
|
||||
direct_link_curvemapping(fd, sima->cumap);
|
||||
|
||||
|
||||
sima->iuser.scene = NULL;
|
||||
sima->iuser.ok = 1;
|
||||
sima->scopes.waveform_1 = NULL;
|
||||
|
|
|
@ -2808,11 +2808,7 @@ static void write_screens(WriteData *wd, ListBase *scrbase)
|
|||
write_soops(wd, so, &tmp_mem_list);
|
||||
}
|
||||
else if (sl->spacetype==SPACE_IMAGE) {
|
||||
SpaceImage *sima= (SpaceImage *)sl;
|
||||
|
||||
writestruct(wd, DATA, "SpaceImage", 1, sl);
|
||||
if (sima->cumap)
|
||||
write_curvemapping(wd, sima->cumap);
|
||||
}
|
||||
else if (sl->spacetype==SPACE_TEXT) {
|
||||
writestruct(wd, DATA, "SpaceText", 1, sl);
|
||||
|
|
|
@ -875,8 +875,6 @@ typedef struct SpaceImage {
|
|||
struct Image *image;
|
||||
struct ImageUser iuser;
|
||||
|
||||
struct CurveMapping *cumap DNA_DEPRECATED; /* was switched to scene's color management settings */
|
||||
|
||||
struct Scopes scopes; /* histogram waveform and vectorscope */
|
||||
struct Histogram sample_line_hist; /* sample line histogram */
|
||||
|
||||
|
|
Loading…
Reference in New Issue