Merged changes in the trunk up to revision 28536.
[blender.git] / source / blender / blenloader / intern / readfile.c
index be19f7bfc1850126ba0cfaafd8c5ccb7182e5c44..36f6b2bc1927cafd1fc5ce2da45522dd7421d940 100644 (file)
@@ -4245,6 +4245,7 @@ static void direct_link_scene(FileData *fd, Scene *sce)
        Editing *ed;
        Sequence *seq;
        MetaStack *ms;
+       SceneRenderLayer *srl;
 
        sce->theDag = NULL;
        sce->dagisvalid = 0;
@@ -4422,6 +4423,10 @@ static void direct_link_scene(FileData *fd, Scene *sce)
        link_list(fd, &(sce->transform_spaces));
        link_list(fd, &(sce->r.layers));
 
+       for(srl= sce->r.layers.first; srl; srl= srl->next) {
+               link_list(fd, &(srl->freestyleConfig.modules));
+       }
+       
        sce->nodetree= newdataadr(fd, sce->nodetree);
        if(sce->nodetree)
                direct_link_nodetree(fd, sce->nodetree);