ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/normal.c
(Generate patch)

Comparing ray/src/rt/normal.c (file contents):
Revision 2.11 by greg, Fri Feb 21 14:53:16 1992 UTC vs.
Revision 2.12 by greg, Tue Mar 3 16:20:02 1992 UTC

# Line 265 | Line 265 | register RAY  *r;
265          if (nd.specfl & SP_PURE && nd.rdiff <= FTINY && nd.tdiff <= FTINY)
266                  return;                         /* 100% pure specular */
267  
268 <        if (r->ro->otype == OBJ_FACE || r->ro->otype == OBJ_RING)
268 >        if (r->ro != NULL && (r->ro->otype == OBJ_FACE ||
269 >                        r->ro->otype == OBJ_RING))
270                  nd.specfl |= SP_FLAT;
271  
272          if (nd.specfl & (SP_REFL|SP_TRAN) && !(nd.specfl & SP_PURE))

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines