--- ray/src/rt/raytrace.c 1994/01/24 11:51:31 2.13 +++ ray/src/rt/raytrace.c 1994/02/28 08:54:02 2.15 @@ -98,7 +98,7 @@ RAY *r; else if (sourcehit(r)) gotmat = rayshade(r, r->ro->omod); - if (!gotmat) + if (r->ro != NULL && !gotmat) objerror(r->ro, USER, "material not found"); if (trace != NULL) @@ -156,7 +156,7 @@ int mod; if (irr_ignore(m->otype)) { depth--; raytrans(r); - return; + return(1); } if (!islight(m->otype)) m = &Lamb;