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

Comparing ray/src/rt/srcsamp.c (file contents):
Revision 2.12 by greg, Sat Dec 6 01:08:53 2008 UTC vs.
Revision 2.13 by greg, Sun Dec 7 19:25:23 2008 UTC

# Line 69 | Line 69 | nextsample:
69          for (i = 0; i < 3; i++)
70                  vpos[i] += (double)cent[i]/MAXSPART;
71                                          /* avoid circular aiming failures */
72 <        if (source[si->sn].sflags & SCIR) {
72 >        if ((source[si->sn].sflags & SCIR) && (si->np > 1 || dstrsrc > 0.7)) {
73                  FVECT   trim;
74                  double  d;
75                  if (source[si->sn].sflags & (SFLAT|SDISTANT)) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines