[Bf-blender-cvs] [e6c79b7] master: Cycles: Fix QBVH refit nodes not setting primitive type properly

Sergey Sharybin noreply at git.blender.org
Tue Jan 13 22:17:38 CET 2015


Commit: e6c79b73691183487b67b8cdde87be60bf298847
Author: Sergey Sharybin
Date:   Wed Jan 14 02:16:45 2015 +0500
Branches: master
https://developer.blender.org/rBe6c79b73691183487b67b8cdde87be60bf298847

Cycles: Fix QBVH refit nodes not setting primitive type properly

===================================================================

M	intern/cycles/bvh/bvh.cpp

===================================================================

diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp
index 5fc4ddb..947f6fe 100644
--- a/intern/cycles/bvh/bvh.cpp
+++ b/intern/cycles/bvh/bvh.cpp
@@ -919,6 +919,7 @@ void QBVH::refit_node(int idx, bool leaf, BoundBox& bbox, uint& visibility)
 		leaf_data[6].x = __int_as_float(c.x);
 		leaf_data[6].y = __int_as_float(c.y);
 		leaf_data[6].z = __uint_as_float(visibility);
+		leaf_data[6].w = __uint_as_float(c.w);
 		memcpy(&pack.nodes[idx * BVH_QNODE_SIZE],
 		       leaf_data,
 		       sizeof(float4)*BVH_QNODE_SIZE);




More information about the Bf-blender-cvs mailing list