[Bf-blender-cvs] [f63eb8db394] cycles_procedural_api: fix for missing primitives in construction of BVH2
Kévin Dietrich
noreply at git.blender.org
Sun Dec 6 06:26:30 CET 2020
Commit: f63eb8db394c62af4e4f4e4cc4573499785a5d59
Author: Kévin Dietrich
Date: Sun Dec 6 01:06:13 2020 +0100
Branches: cycles_procedural_api
https://developer.blender.org/rBf63eb8db394c62af4e4f4e4cc4573499785a5d59
fix for missing primitives in construction of BVH2
===================================================================
M intern/cycles/bvh/bvh.cpp
===================================================================
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp
index addf54185a1..f344f1901a4 100644
--- a/intern/cycles/bvh/bvh.cpp
+++ b/intern/cycles/bvh/bvh.cpp
@@ -283,7 +283,7 @@ void BVH::pack_triangle(int idx, float4 tri_verts[3])
void BVH::pack_primitives()
{
- if (!params.top_level && objects.size() == 1 && geometry.size() == 1) {
+ if (!params.top_level && objects.size() == 1 && geometry.size() == 1 && params.bvh_layout != BVHLayout::BVH_LAYOUT_BVH2) {
Object *ob = objects[0];
Geometry *geom = geometry[0];
More information about the Bf-blender-cvs
mailing list