Merged changes in the trunk up to revision 25863.
[blender.git] / source / blender / blenloader / intern / writefile.c
index 4c9c54012f81abf8414c2d8cfdfda31c772cf5fb..d8bb140186c33c2febff8c3434ef0f7ce1f8e250 100644 (file)
@@ -1785,6 +1785,7 @@ static void write_scenes(WriteData *wd, ListBase *scebase)
        TimeMarker *marker;
        TransformOrientation *ts;
        SceneRenderLayer *srl;
+       FreestyleModuleConfig *fmc;
        ToolSettings *tos;
        
        sce= scebase->first;
@@ -1909,8 +1910,14 @@ static void write_scenes(WriteData *wd, ListBase *scebase)
                for(ts = sce->transform_spaces.first; ts; ts = ts->next)
                        writestruct(wd, DATA, "TransformOrientation", 1, ts);
                
-               for(srl= sce->r.layers.first; srl; srl= srl->next)
+               for(srl= sce->r.layers.first; srl; srl= srl->next) {
                        writestruct(wd, DATA, "SceneRenderLayer", 1, srl);
+                       
+                       for(fmc= srl->freestyleConfig.modules.first; fmc; fmc = fmc->next) {
+                               writestruct(wd, DATA, "FreestyleModuleConfig", 1, fmc);
+                       }
+                       
+               }
                
                if(sce->nodetree) {
                        writestruct(wd, DATA, "bNodeTree", 1, sce->nodetree);