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:
authorThomas Dinges <blender@dingto.org>2013-05-27 02:13:59 +0400
committerThomas Dinges <blender@dingto.org>2013-05-27 02:13:59 +0400
commitd76570c0716cc1e08654e0c526dee7fc8349df5a (patch)
tree79ba19674d10c849366bbd14d5fd2de35c36cbbd /intern/cycles
parentec8d277c64346770b99716b3c1bbdcd07eae26f6 (diff)
Cycles / Hair:
* Fix a condition in the hair BVH code.
Diffstat (limited to 'intern/cycles')
-rw-r--r--intern/cycles/kernel/kernel_bvh.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/kernel/kernel_bvh.h b/intern/cycles/kernel/kernel_bvh.h
index f529cc379bd..33388032a67 100644
--- a/intern/cycles/kernel/kernel_bvh.h
+++ b/intern/cycles/kernel/kernel_bvh.h
@@ -161,7 +161,7 @@ __device_inline void bvh_node_intersect(KernelGlobals *kg,
c0min = max(ldiff * c0min, c0min - extmax);
c0max = min(hdiff * c0max, c0max + extmax);
}
- if(__float_as_int(cnodes.z) & PATH_RAY_CURVE) {
+ if(__float_as_int(cnodes.w) & PATH_RAY_CURVE) {
c1min = max(ldiff * c1min, c1min - extmax);
c1max = min(hdiff * c1max, c1max + extmax);
}