Blender Internal: Fix regression that sometimes shadows are not rendered, caused by rBec4ed2e3df507245aceb7341b4fdf2f5ed935067.

Easy mistake in code cleanup. :)
This commit is contained in:
2014-02-14 07:44:53 +09:00
parent 9185ab5d9c
commit d95b378c4d

View File

@@ -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]));
}
}