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
path: root/intern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2015-01-22 12:27:13 +0300
committerSergey Sharybin <sergey.vfx@gmail.com>2015-01-22 12:27:13 +0300
commit1841b129002968da50b990a0075749b4598fb609 (patch)
treea6412615b7b74fd1951c04fb1d4048cf4b58fc3e /intern
parenta1ffb49e494deac6cf6d3bcca45c046d9acdfad1 (diff)
Cycles: Add assert check to triangle packing
Handy for troubleshooting.
Diffstat (limited to 'intern')
-rw-r--r--intern/cycles/bvh/bvh.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/intern/cycles/bvh/bvh.cpp b/intern/cycles/bvh/bvh.cpp
index 947f6fe67d8..376a7f8a656 100644
--- a/intern/cycles/bvh/bvh.cpp
+++ b/intern/cycles/bvh/bvh.cpp
@@ -263,6 +263,7 @@ void BVH::refit(Progress& progress)
void BVH::pack_triangle(int idx, float4 woop[3])
{
int tob = pack.prim_object[idx];
+ assert(tob >= 0 && tob < objects.size());
const Mesh *mesh = objects[tob]->mesh;
if(mesh->has_motion_blur())