# | 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) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |