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:
authorMATILLAT Quentin <qmatillat@gmail.com>2019-10-15 09:10:18 +0300
committerMATILLAT Quentin <qmatillat@gmail.com>2019-10-15 09:10:18 +0300
commit421159e620a98b090ef0451dda15e4fbcdc1bfd5 (patch)
treedc12593218d88ebec9f5a26cd4464602403f5a35
parentd9d1faef01a77af4982c25cdd19bcfed084940c6 (diff)
Fix the building of empty treesoc-2019-embree-gpu
-rw-r--r--intern/cycles/bvh/bvh_embree_converter.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/intern/cycles/bvh/bvh_embree_converter.cpp b/intern/cycles/bvh/bvh_embree_converter.cpp
index 894985a174e..512237e35cf 100644
--- a/intern/cycles/bvh/bvh_embree_converter.cpp
+++ b/intern/cycles/bvh/bvh_embree_converter.cpp
@@ -804,9 +804,13 @@ void BVHEmbreeConverter::fillPack(PackedBVH &pack) {
BVHNode *root = this->getBVH2();
if(root == nullptr) {
- pack.root_index = 0;
pack.nodes.clear();
- pack.leaf_nodes.clear();
+ pack.leaf_nodes.resize(1);
+ pack.leaf_nodes[0].x = 0;
+ pack.leaf_nodes[0].y = 0;
+ pack.leaf_nodes[0].z = 0;
+ pack.leaf_nodes[0].w = 0;
+ pack.root_index = -1;
return;
}