diff options
author | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-07-16 10:25:10 +0400 |
---|---|---|
committer | Tamito Kajiyama <rd6t-kjym@asahi-net.or.jp> | 2014-08-12 05:10:22 +0400 |
commit | cb75f79b8a70fdae806e1ce57015cb8afb14c097 (patch) | |
tree | 50728dd8dc0242f785d19aea978163446312aaae /source/blender/makesrna/intern/rna_linestyle.c | |
parent | 4e11fcead0f7262bf92e873882bf9141a749ff32 (diff) |
Freestyle: Add BKE_linestyle_default_shader() for creating the default line style shader node tree.
Changes to ED_node_shader_default() were reverted since the code there was actually
not suitable for setting up the default line style node tree properly.
Diffstat (limited to 'source/blender/makesrna/intern/rna_linestyle.c')
-rw-r--r-- | source/blender/makesrna/intern/rna_linestyle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/makesrna/intern/rna_linestyle.c b/source/blender/makesrna/intern/rna_linestyle.c index f6f329e6b4d..e70a07b1a2a 100644 --- a/source/blender/makesrna/intern/rna_linestyle.c +++ b/source/blender/makesrna/intern/rna_linestyle.c @@ -290,7 +290,7 @@ static void rna_LineStyle_use_nodes_update(bContext *C, PointerRNA *ptr) FreestyleLineStyle *linestyle = (FreestyleLineStyle *)ptr->data; if (linestyle->use_nodes && linestyle->nodetree == NULL) - ED_node_shader_default(C, &linestyle->id); + BKE_linestyle_default_shader(C, linestyle); rna_LineStyle_update(CTX_data_main(C), CTX_data_scene(C), ptr); } |