Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-07-16 10:25:10 +0400
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>2014-08-12 05:10:22 +0400
commitcb75f79b8a70fdae806e1ce57015cb8afb14c097 (patch)
tree50728dd8dc0242f785d19aea978163446312aaae /source/blender/editors/space_node/node_edit.c
parent4e11fcead0f7262bf92e873882bf9141a749ff32 (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/editors/space_node/node_edit.c')
-rw-r--r--source/blender/editors/space_node/node_edit.c12
1 files changed, 0 insertions, 12 deletions
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;