# | Line 246 | Line 246 | register RAY *r; | |
---|---|---|
246 | /* diffuse reflection */ | |
247 | nd.rdiff = 1.0 - nd.trans - nd.rspec; | |
248 | ||
249 | < | if (r->ro->otype == OBJ_FACE || r->ro->otype == OBJ_RING) |
249 | > | if (r->ro != NULL && (r->ro->otype == OBJ_FACE || |
250 | > | r->ro->otype == OBJ_RING)) |
251 | nd.specfl |= SP_FLAT; | |
252 | ||
253 | getacoords(r, &nd); /* set up coordinates */ |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |