From cb75f79b8a70fdae806e1ce57015cb8afb14c097 Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Wed, 16 Jul 2014 15:25:10 +0900 Subject: 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. --- source/blender/editors/space_node/node_edit.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'source/blender/editors/space_node/node_edit.c') diff --git a/source/blender/editors/space_node/node_edit.c b/source/blender/editors/space_node/node_edit.c index 7643c9c07b6..1cc2e41a570 100644 --- a/source/blender/editors/space_node/node_edit.c +++ b/source/blender/editors/space_node/node_edit.c @@ -434,18 +434,6 @@ void ED_node_shader_default(const bContext *C, ID *id) strength = 1.0f; break; } - case ID_LS: - { - FreestyleLineStyle *linestyle = (FreestyleLineStyle *)id; - linestyle->nodetree = ntree; - - output_type = SH_NODE_OUTPUT_LINESTYLE; - shader_type = SH_NODE_TEX_IMAGE; - - copy_v3_v3(color, &linestyle->r); - strength = 1.0f; - break; - } default: printf("ED_node_shader_default called on wrong ID type.\n"); return; -- cgit v1.2.3