Fix #27900: file browser filter, sort, .. parameters were not saved. This is
[blender.git] / source / blender / blenloader / intern / readfile.c
index 2637e114fbc891a242d047cef46064b2d0201b68..2402106306e9c3bf5ecffcd610c4a110689f66c3 100644 (file)
@@ -4836,7 +4836,6 @@ static void lib_link_screen(FileData *fd, Main *main)
                                        else if(sl->spacetype==SPACE_FILE) {
                                                SpaceFile *sfile= (SpaceFile *)sl;
                                                sfile->files= NULL;
-                                               sfile->params= NULL;
                                                sfile->op= NULL;
                                                sfile->layout= NULL;
                                                sfile->folders_prev= NULL;
@@ -5449,7 +5448,7 @@ static void direct_link_screen(FileData *fd, bScreen *sc)
                                sfile->files= NULL;
                                sfile->layout= NULL;
                                sfile->op= NULL;
-                               sfile->params= NULL;
+                               sfile->params= newdataadr(fd, sfile->params);
                        }
                }