Cycles: Add assert check to triangle packing

Handy for troubleshooting.
This commit is contained in:
Sergey Sharybin 2015-01-22 14:27:13 +05:00
parent a1ffb49e49
commit 1841b12900
1 changed files with 1 additions and 0 deletions

View File

@ -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())