Fix T46032: Crash w/ file-browser preview

This commit is contained in:
Campbell Barton 2015-09-07 17:20:09 +10:00
parent 1c5b15eab3
commit e106a212e8
Notes: blender-bot 2023-10-04 09:42:55 +02:00
Referenced by issue #46032, Again or still sudden shutdown with some files if filebrowser is involved
1 changed files with 2 additions and 0 deletions

View File

@ -6523,6 +6523,7 @@ void blo_lib_link_screen_restore(Main *newmain, bScreen *curscreen, Scene *cursc
else if (sl->spacetype == SPACE_FILE) {
SpaceFile *sfile = (SpaceFile *)sl;
sfile->op = NULL;
sfile->previews_timer = NULL;
}
else if (sl->spacetype == SPACE_ACTION) {
SpaceAction *saction = (SpaceAction *)sl;
@ -7052,6 +7053,7 @@ static bool direct_link_screen(FileData *fd, bScreen *sc)
sfile->files = NULL;
sfile->layout = NULL;
sfile->op = NULL;
sfile->previews_timer = NULL;
sfile->params = newdataadr(fd, sfile->params);
}
else if (sl->spacetype == SPACE_CLIP) {