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

Comparing ray/src/rt/source.c (file contents):
Revision 1.37 by greg, Tue Jun 25 12:32:51 1991 UTC vs.
Revision 1.38 by greg, Wed Jun 26 14:10:29 1991 UTC

# Line 86 | Line 86 | marksources()                  /* find and mark source objects */
86                          source[ns].sflags |= SSPOT;
87                          if ((source[ns].sl.s = makespot(m)) == NULL)
88                                  goto memerr;
89 +                        if (source[ns].sflags & SFLAT &&
90 +                                !checkspot(source[ns].sl.s,source[ns].snorm)) {
91 +                                objerror(o, WARNING,
92 +                                        "invalid spotlight direction");
93 +                                source[ns].sflags |= SSKIP;
94 +                        }
95                  }
96          }
97          if (nsources <= 0) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines