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

Comparing ray/src/rt/rv2.c (file contents):
Revision 2.79 by greg, Fri May 2 23:56:18 2025 UTC vs.
Revision 2.81 by greg, Fri Jun 20 03:43:17 2025 UTC

# Line 14 | Line 14 | static const char      RCSid[] = "$Id$";
14  
15   #include  "platform.h"
16   #include  "rtprocess.h" /* win_popen() */
17 #include  "paths.h"
17   #include  "ray.h"
18   #include  "ambient.h"
19   #include  "otypes.h"
# Line 587 | Line 586 | setparam(                              /* get/set program parameter */
586          }
587          switch (s[0]) {
588          case 'u':                       /* uncorrelated sampling */
589 <                getparam(s+1, "uncorrelated sampling", 'b',
590 <                                (void *)&rand_samp);
589 >                if (getparam(s+1, "uncorrelated sampling", 'b',
590 >                                (void *)&rand_samp))
591 >                        reset_random();
592                  break;
593          case 'l':                       /* limit */
594                  switch (s[1]) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines