From a462d69bbf771e49d2fa49589608c375376b42ed Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Thu, 20 Dec 2012 07:57:26 +0000 Subject: Another big patch set by Bastien Montagne, thanks a lot! * Made Freestyle optional (turned on by default). * Fix for missing bpath.c updates in the previous merge of trunk changes. --- source/blender/blenkernel/intern/bpath.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'source/blender/blenkernel/intern/bpath.c') diff --git a/source/blender/blenkernel/intern/bpath.c b/source/blender/blenkernel/intern/bpath.c index 24b13b062f3..e10a078c2f7 100644 --- a/source/blender/blenkernel/intern/bpath.c +++ b/source/blender/blenkernel/intern/bpath.c @@ -70,6 +70,9 @@ #include "DNA_vfont_types.h" #include "DNA_scene_types.h" #include "DNA_smoke_types.h" +#ifdef WITH_FREESTYLE +# include "DNA_freestyle_types.h" +#endif #include "BLI_blenlib.h" #include "BLI_utildefines.h" @@ -575,6 +578,18 @@ void BKE_bpath_traverse_id(Main *bmain, ID *id, BPathVisitor visit_cb, const int } SEQ_END } +#ifdef WITH_FREESTYLE + { + SceneRenderLayer *srl = scene->r.layers.first; + + 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); + } + } + } +#endif break; } case ID_ME: -- cgit v1.2.3