Last uiList patch (for now!): filtering and reordering of shown elements.
[blender.git] / source / blender / blenloader / intern / writefile.c
index b7254ffe1a9db20a0585e749aefcdebf8e62552e..83982781d8c9bfbd8ff5b206accd72c3abbd6691 100644 (file)
@@ -2394,6 +2394,15 @@ static void write_region(WriteData *wd, ARegion *ar, int spacetype)
        }
 }
 
+static void write_uilist(WriteData *wd, uiList *ui_list)
+{
+       writestruct(wd, DATA, "uiList", 1, ui_list);
+
+       if (ui_list->properties) {
+               IDP_WriteProperty(ui_list->properties, wd);
+       }
+}
+
 static void write_soops(WriteData *wd, SpaceOops *so, LinkNode **tmp_mem_list)
 {
        BLI_mempool *ts = so->treestore;
@@ -2475,7 +2484,7 @@ static void write_screens(WriteData *wd, ListBase *scrbase)
                                        writestruct(wd, DATA, "Panel", 1, pa);
                                
                                for (ui_list = ar->ui_lists.first; ui_list; ui_list = ui_list->next)
-                                       writestruct(wd, DATA, "uiList", 1, ui_list);
+                                       write_uilist(wd, ui_list);
                        }
                        
                        sl= sa->spacedata.first;