diff options
author | IRIE Shinsuke <irieshinsuke@yahoo.co.jp> | 2014-02-14 02:44:53 +0400 |
---|---|---|
committer | IRIE Shinsuke <irieshinsuke@yahoo.co.jp> | 2014-02-14 03:02:16 +0400 |
commit | d95b378c4dbf8caea5de382a38cedbff6a006ed3 (patch) | |
tree | 59f1a4693dd3182c1d5eef3adc5cf37dced30bbf | |
parent | 9185ab5d9c5c0b13eb90f6da9e5f81e36ae4f0fc (diff) |
Blender Internal: Fix regression that sometimes shadows are not rendered, caused by rBec4ed2e3df507245aceb7341b4fdf2f5ed935067.
Easy mistake in code cleanup. :)
-rw-r--r-- | source/blender/render/intern/raytrace/svbvh.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/blender/render/intern/raytrace/svbvh.h b/source/blender/render/intern/raytrace/svbvh.h index d6c1f22ac12..a3ef166e6b2 100644 --- a/source/blender/render/intern/raytrace/svbvh.h +++ b/source/blender/render/intern/raytrace/svbvh.h @@ -172,10 +172,10 @@ inline void bvh_node_merge_bb<SVBVHNode>(SVBVHNode *node, float min[3], float ma } for (int j = 0; j < 3; j++) { max[j] = max_ff(max[j], - max_ffff(res[4 * j + 0], - res[4 * j + 1], - res[4 * j + 2], - res[4 * j + 3])); + max_ffff(res[4 * (j + 3) + 0], + res[4 * (j + 3) + 1], + res[4 * (j + 3) + 2], + res[4 * (j + 3) + 3])); } } |