forked from bartvdbraak/blender
Cycles: Add assert check to triangle packing
Handy for troubleshooting.
This commit is contained in:
parent
a1ffb49e49
commit
1841b12900
@ -263,6 +263,7 @@ void BVH::refit(Progress& progress)
|
|||||||
void BVH::pack_triangle(int idx, float4 woop[3])
|
void BVH::pack_triangle(int idx, float4 woop[3])
|
||||||
{
|
{
|
||||||
int tob = pack.prim_object[idx];
|
int tob = pack.prim_object[idx];
|
||||||
|
assert(tob >= 0 && tob < objects.size());
|
||||||
const Mesh *mesh = objects[tob]->mesh;
|
const Mesh *mesh = objects[tob]->mesh;
|
||||||
|
|
||||||
if(mesh->has_motion_blur())
|
if(mesh->has_motion_blur())
|
||||||
|
Loading…
Reference in New Issue
Block a user