From 52d357a0b5f87e531a2860c2a97d2edb37c946ab Mon Sep 17 00:00:00 2001 From: Tamito Kajiyama Date: Sun, 20 Jul 2014 12:14:31 +0900 Subject: Freestyle: Added new UV Along Stroke shader node. --- source/blender/makesrna/intern/rna_nodetree.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'source/blender/makesrna') diff --git a/source/blender/makesrna/intern/rna_nodetree.c b/source/blender/makesrna/intern/rna_nodetree.c index c975f6cfe90..e90de3631d6 100644 --- a/source/blender/makesrna/intern/rna_nodetree.c +++ b/source/blender/makesrna/intern/rna_nodetree.c @@ -3768,6 +3768,16 @@ static void def_sh_uvmap(StructRNA *srna) RNA_def_struct_sdna_from(srna, "bNode", NULL); } +static void def_sh_uvalongstroke(StructRNA *srna) +{ + PropertyRNA *prop; + + prop = RNA_def_property(srna, "use_tips", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_sdna(prop, NULL, "custom1", 1); + RNA_def_property_ui_text(prop, "Use Tips", "Lower half of the texture is for tips of the stroke"); + RNA_def_property_update(prop, NC_NODE | NA_EDITED, "rna_Node_update"); +} + static void def_sh_normal_map(StructRNA *srna) { static EnumPropertyItem prop_space_items[] = { -- cgit v1.2.3