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

Comparing ray/src/rt/srcdraw.c (file contents):
Revision 2.20 by greg, Tue Nov 13 19:58:33 2018 UTC vs.
Revision 2.21 by greg, Thu May 14 20:58:03 2020 UTC

# Line 326 | Line 326 | sourcepoly(                    /* compute image polygon for source */
326                                  }
327                          }
328                                                          /* find image point */
329 <                        if (viewloc(ip, &ourview, ap) <= 0)
329 >                        if (viewloc(ip, &ourview, ap) != VL_GOOD)
330                                  return(0);              /* in front of view */
331                          sp[j][0] = ip[0]; sp[j][1] = ip[1];
332                  }
# Line 350 | Line 350 | sourcepoly(                    /* compute image polygon for source */
350                          else ap[i] -= s->ss[SW][i];
351                  }
352                                                  /* find image point */
353 <                if (viewloc(ip, &ourview, ap) <= 0)
353 >                if (viewloc(ip, &ourview, ap) != VL_GOOD)
354                          return(0);              /* in front of view */
355                  pt[j][0] = ip[0]; pt[j][1] = ip[1];
356          }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines