diff options
author | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-01 21:17:17 +0400 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@pandora.be> | 2012-05-01 21:17:17 +0400 |
commit | af51b735046c40d7a6c9d6c453bf4bf7c546f8ea (patch) | |
tree | 6e4801fb2ba220bb6ab45cf604b5bb318ea04202 /intern | |
parent | ffc9fcb1a1d58bb03b5cb60dc40f0fd91c3e8f3c (diff) |
Fix #31202: cycles crash in new BVH builder on Windows, when compiling with
debug info.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh_build.cpp | 2 |
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(); } |