Fix #27900: file browser filter, sort, .. parameters were not saved. This is
[blender.git] / source / blender / blenloader / intern / writefile.c
index d5192eaf09c3e27d6f309e99e9d98a037ad9ef55..ba4395ace9cb6c90cdd1f1c2aa33e8b37f931d90 100644 (file)
@@ -2103,7 +2103,11 @@ static void write_screens(WriteData *wd, ListBase *scrbase)
                                        writestruct(wd, DATA, "SpaceButs", 1, sl);
                                }
                                else if(sl->spacetype==SPACE_FILE) {
+                                       SpaceFile *sfile= (SpaceFile *)sl;
+
                                        writestruct(wd, DATA, "SpaceFile", 1, sl);
+                                       if(sfile->params)
+                                               writestruct(wd, DATA, "FileSelectParams", 1, sfile->params);
                                }
                                else if(sl->spacetype==SPACE_SEQ) {
                                        writestruct(wd, DATA, "SpaceSeq", 1, sl);