Merged changes in the trunk up to revision 27992.
[blender.git] / source / blender / blenloader / intern / writefile.c
index 2b32bbdf0c130ffc2a96089455b487638e4c67f6..f164a44c10bcef29b2ca1d20b9ec92d85d8a9b77 100644 (file)
@@ -1781,6 +1781,7 @@ static void write_scenes(WriteData *wd, ListBase *scebase)
        TimeMarker *marker;
        TransformOrientation *ts;
        SceneRenderLayer *srl;
+       FreestyleModuleConfig *fmc;
        ToolSettings *tos;
        
        sce= scebase->first;
@@ -1905,8 +1906,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);