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

Comparing ray/src/rt/ambient.c (file contents):
Revision 2.105 by greg, Tue Jan 9 05:01:15 2018 UTC vs.
Revision 2.107 by greg, Sat Feb 16 00:09:53 2019 UTC

# Line 15 | Line 15 | static const char      RCSid[] = "$Id$";
15   #include  "otspecial.h"
16   #include  "resolu.h"
17   #include  "ambient.h"
18 #include  "source.h"
18   #include  "random.h"
19   #include  "pmapamb.h"
20  
# Line 133 | Line 132 | setambacc(                             /* set ambient accuracy */
132          newa *= (newa > 0);
133          if (fabs(newa - olda) >= .05*(newa + olda)) {
134                  ambacc = newa;
135 <                if (nambvals > 0)
135 >                if (ambacc > FTINY && nambvals > 0)
136                          sortambvals(1);         /* rebuild tree */
137          }
138   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines