Merged changes in the trunk up to revision 43881.
[blender.git] / source / blender / blenlib / intern / bpath.c
index fdda9166c94b1d03826835055f4179d9f8284850..7acbf450fed8efe2e229724a2e6884af969d5344 100644 (file)
@@ -68,6 +68,7 @@
 #include "DNA_vfont_types.h"
 #include "DNA_scene_types.h"
 #include "DNA_smoke_types.h"
+#include "DNA_freestyle_types.h"
 
 #include "BLI_blenlib.h"
 #include "BLI_bpath.h"
@@ -511,6 +512,7 @@ void bpath_traverse_id(Main *bmain, ID *id, BPathVisitor visit_cb, const int fla
        case ID_SCE:
                {
                        Scene *scene= (Scene *)id;
+                       SceneRenderLayer *srl= scene->r.layers.first;
                        if (scene->ed) {
                                Sequence *seq;
 
@@ -548,6 +550,12 @@ void bpath_traverse_id(Main *bmain, ID *id, BPathVisitor visit_cb, const int fla
                                }
                                SEQ_END
                        }
+                       for(; srl; srl= srl->next) {
+                               FreestyleModuleConfig* module= srl->freestyleConfig.modules.first;
+                               for (; module; module= module->next) {
+                                       rewrite_path_fixed(module->module_path, visit_cb, absbase, bpath_user_data);
+                               }
+                       }
                }
                break;
        case ID_ME: