Fix crash in file with image editor that was saved after using scopes.
This commit is contained in:
@@ -4835,6 +4835,9 @@ void lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *curscene)
|
||||
sima->image= restore_pointer_by_name(newmain, (ID *)sima->image, 1);
|
||||
|
||||
sima->scopes.samples_ibuf = NULL;
|
||||
sima->scopes.waveform_1 = NULL;
|
||||
sima->scopes.waveform_2 = NULL;
|
||||
sima->scopes.waveform_3 = NULL;
|
||||
sima->scopes.ok = 0;
|
||||
|
||||
/* NOTE: pre-2.5, this was local data not lib data, but now we need this as lib data
|
||||
@@ -5109,6 +5112,9 @@ static void direct_link_screen(FileData *fd, bScreen *sc)
|
||||
sima->iuser.scene= NULL;
|
||||
sima->iuser.ok= 1;
|
||||
sima->scopes.samples_ibuf = NULL;
|
||||
sima->scopes.waveform_1 = NULL;
|
||||
sima->scopes.waveform_2 = NULL;
|
||||
sima->scopes.waveform_3 = NULL;
|
||||
sima->scopes.ok = 0;
|
||||
|
||||
/* WARNING: gpencil data is no longer stored directly in sima after 2.5
|
||||
|
||||
Reference in New Issue
Block a user