diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-22 12:27:13 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2015-01-22 12:27:13 +0300 |
commit | 1841b129002968da50b990a0075749b4598fb609 (patch) | |
tree | a6412615b7b74fd1951c04fb1d4048cf4b58fc3e /intern | |
parent | a1ffb49e494deac6cf6d3bcca45c046d9acdfad1 (diff) |
Cycles: Add assert check to triangle packing
Handy for troubleshooting.
Diffstat (limited to 'intern')
-rw-r--r-- | intern/cycles/bvh/bvh.cpp | 1 |
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()) |