* Fix for crash with new raytree

This commit is contained in:
Matt Ebb
2009-10-06 23:05:53 +00:00
parent 46402ccddc
commit 91400d9da8

View File

@@ -139,12 +139,16 @@ static int vol_get_bounds(ShadeInput *shi, float *co, float *vec, float *hitco,
*/
isect->mode= RE_RAY_MIRROR;
isect->orig.ob = (void*)shi->obi;
isect->last_hit = NULL;
isect->lay= -1;
if (intersect_type == VOL_BOUNDS_DEPTH) isect->orig.face = (void*)shi->vlr;
else if (intersect_type == VOL_BOUNDS_SS) isect->orig.face= NULL;
if (intersect_type == VOL_BOUNDS_DEPTH) {
isect->orig.face = (void*)shi->vlr;
isect->orig.ob = (void*)shi->obi;
} else if (intersect_type == VOL_BOUNDS_SS) {
isect->orig.face= NULL;
isect->orig.ob = NULL;
}
if(RE_rayobject_raycast(R.raytree, isect))
{