Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@pandora.be>2012-05-01 21:17:17 +0400
committerBrecht Van Lommel <brechtvanlommel@pandora.be>2012-05-01 21:17:17 +0400
commitaf51b735046c40d7a6c9d6c453bf4bf7c546f8ea (patch)
tree6e4801fb2ba220bb6ab45cf604b5bb318ea04202 /intern/cycles/bvh/bvh_build.cpp
parentffc9fcb1a1d58bb03b5cb60dc40f0fd91c3e8f3c (diff)
Fix #31202: cycles crash in new BVH builder on Windows, when compiling with
debug info.
Diffstat (limited to 'intern/cycles/bvh/bvh_build.cpp')
-rw-r--r--intern/cycles/bvh/bvh_build.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/cycles/bvh/bvh_build.cpp b/intern/cycles/bvh/bvh_build.cpp
index c5b4f1d01ae..d865426304a 100644
--- a/intern/cycles/bvh/bvh_build.cpp
+++ b/intern/cycles/bvh/bvh_build.cpp
@@ -175,7 +175,7 @@ BVHNode* BVHBuild::run()
}
else {
/* multithreaded binning build */
- BVHObjectBinning rootbin(root, &references[0]);
+ BVHObjectBinning rootbin(root, (references.size())? &references[0]: NULL);
rootnode = build_node(rootbin, 0);
task_pool.wait();
}