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
path: root/source
diff options
context:
space:
mode:
authorStuart Broadfoot <gbroadfoot@hotmail.com>2013-01-01 23:50:29 +0400
committerStuart Broadfoot <gbroadfoot@hotmail.com>2013-01-01 23:50:29 +0400
commit0f3931dee4fb38e2447d05cebb41cc26041be82a (patch)
tree600880d2cd72978988f98eca0072e21364e9d99d /source
parent178a877a95c15e386f4e68d4094391e5265770fa (diff)
Fix for normal scaling when using triangle primitives for hair.
and some code clean ups in blender_curves and node_shader_hair_info.c
Diffstat (limited to 'source')
-rw-r--r--source/blender/nodes/shader/nodes/node_shader_hair_info.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/source/blender/nodes/shader/nodes/node_shader_hair_info.c b/source/blender/nodes/shader/nodes/node_shader_hair_info.c
index 8e6f40faf24..5cd4c8bd1d3 100644
--- a/source/blender/nodes/shader/nodes/node_shader_hair_info.c
+++ b/source/blender/nodes/shader/nodes/node_shader_hair_info.c
@@ -35,11 +35,6 @@ static bNodeSocketTemplate outputs[] = {
{ -1, 0, "" }
};
-static int node_shader_gpu_curve_attrib(GPUMaterial *mat, bNode *UNUSED(node), GPUNodeStack *in, GPUNodeStack *out)
-{
- return GPU_stack_link(mat, "NODE_HAIR_INFO", in, out);
-}
-
/* node type definition */
void register_node_type_sh_hair_info(bNodeTreeType *ttype)
{
@@ -52,7 +47,7 @@ void register_node_type_sh_hair_info(bNodeTreeType *ttype)
node_type_init(&ntype, NULL);
node_type_storage(&ntype, "", NULL, NULL);
node_type_exec(&ntype, NULL);
- node_type_gpu(&ntype, node_shader_gpu_curve_attrib);
+ node_type_gpu(&ntype, NULL);
nodeRegisterType(ttype, &ntype);
}