[Bf-blender-cvs] [a5be9359665] blender-v3.1-release: Fix uninitialized value in Cycles BVH after recent changes

Brecht Van Lommel noreply at git.blender.org
Fri Feb 4 20:27:57 CET 2022


Commit: a5be9359665026a5d558e5f29db349c6df0585dc
Author: Brecht Van Lommel
Date:   Fri Feb 4 19:08:29 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rBa5be9359665026a5d558e5f29db349c6df0585dc

Fix uninitialized value in Cycles BVH after recent changes

Found by asan, unknown if it actually caused an issue.

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

M	intern/cycles/bvh/params.h

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

diff --git a/intern/cycles/bvh/params.h b/intern/cycles/bvh/params.h
index 9804c7994ef..61fa5484ce0 100644
--- a/intern/cycles/bvh/params.h
+++ b/intern/cycles/bvh/params.h
@@ -142,6 +142,7 @@ class BVHParams {
 
     top_level = false;
     bvh_layout = BVH_LAYOUT_BVH2;
+    use_compact_structure = true;
     use_unaligned_nodes = false;
 
     num_motion_curve_steps = 0;



More information about the Bf-blender-cvs mailing list