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.36 by greg, Thu Jun 20 16:36:41 1991 UTC vs.
Revision 1.38 by greg, Wed Jun 26 14:10:29 1991 UTC

# Line 75 | Line 75 | marksources()                  /* find and mark source objects */
75                  if ((ns = newsource()) < 0)
76                          goto memerr;
77  
78 <                (*sfun[o->otype].of->setsrc)(&source[ns], o);
78 >                setsource(&source[ns], o);
79  
80                  if (m->otype == MAT_GLOW) {
81                          source[ns].sflags |= SPROX;
# 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