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:
authorTon Roosendaal <ton@blender.org>2006-10-14 19:26:15 +0400
committerTon Roosendaal <ton@blender.org>2006-10-14 19:26:15 +0400
commitbc10cf38b9c46855f15863f35c60c2c8714e5187 (patch)
tree6164b8a6c757dda2075cd54880443063c3e068cd /source
parent11b4d14ab6651b14bbbf41981734689b1ddea195 (diff)
Irregular shadow bug: mixing up zmin and zmax in optimize caused larger
faces to miss casting shadow.
Diffstat (limited to 'source')
-rw-r--r--source/blender/render/intern/source/shadbuf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/render/intern/source/shadbuf.c b/source/blender/render/intern/source/shadbuf.c
index fc6e34d0cbb..2194d202351 100644
--- a/source/blender/render/intern/source/shadbuf.c
+++ b/source/blender/render/intern/source/shadbuf.c
@@ -1256,7 +1256,7 @@ static void isb_bsp_face_inside(ISBBranch *bspn, BSPFace *face)
ISBSample *samp= bspn->samples[a];
if(samp->facenr!=face->facenr && samp->shadfac) {
- if(face->box.zmax < samp->zco[2]) {
+ if(face->box.zmin < samp->zco[2]) {
if(BLI_in_rctf((rctf *)&face->box, samp->zco[0], samp->zco[1])) {
int inshadow= 0;