diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-14 00:16:45 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-14 00:17:28 +0300 |
commit | e6c79b73691183487b67b8cdde87be60bf298847 (patch) | |
tree | 10ea3505a06475f5ce326b1d0d427faddb373f6b /intern | |
parent | cfd2af0d480f847875442c46fdb4a7c7b6ec1113 (diff) |
Cycles: Fix QBVH refit nodes not setting primitive type properly
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp index 5fc4ddb3a0e..947f6fe67d8 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); |