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

Comparing ray/src/rt/aniso.c (file contents):
Revision 2.10 by greg, Fri Feb 21 14:50:23 1992 UTC vs.
Revision 2.11 by greg, Tue Mar 3 16:20:00 1992 UTC

# 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 */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines