# | Line 98 | Line 98 | RAY *r; | |
---|---|---|
98 | else if (sourcehit(r)) | |
99 | gotmat = rayshade(r, r->ro->omod); | |
100 | ||
101 | < | if (!gotmat) |
101 | > | if (r->ro != NULL && !gotmat) |
102 | objerror(r->ro, USER, "material not found"); | |
103 | ||
104 | if (trace != NULL) | |
# | Line 156 | Line 156 | int mod; | |
156 | if (irr_ignore(m->otype)) { | |
157 | depth--; | |
158 | raytrans(r); | |
159 | < | return; |
159 | > | return(1); |
160 | } | |
161 | if (!islight(m->otype)) | |
162 | m = &Lamb; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |