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:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-05 22:49:42 +0300
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2008-02-05 22:49:42 +0300
commit4d58ff50cff6c63614faaa093b70b6594088e91a (patch)
tree553580246f3e710e8711afb0bb1223841782e7c7 /source/blender
parent37d139ea54029589b34807c59f0108d51b415ef3 (diff)
Fix for bug in strand shading, could give errors on border of parts.
Diffstat (limited to 'source/blender')
-rw-r--r--source/blender/render/intern/source/shadeinput.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/shadeinput.c b/source/blender/render/intern/source/shadeinput.c
index 57fda17fc48..ea8cf990c22 100644
--- a/source/blender/render/intern/source/shadeinput.c
+++ b/source/blender/render/intern/source/shadeinput.c
@@ -396,7 +396,7 @@ void shade_input_set_strand_texco(ShadeInput *shi, StrandRen *strand, StrandVert
shi->surfdist= 0.0f;
for(sv=strand->vert; sv!=svert; sv++)
shi->surfdist+=VecLenf(sv->co, (sv+1)->co);
- shi->surfdist += 0.5f*(spoint->strandco+1.0f)*VecLenf(sv->co, (sv+1)->co);
+ shi->surfdist += spoint->t*VecLenf(sv->co, (sv+1)->co);
}
}