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

Comparing ray/src/util/rfluxmtx.c (file contents):
Revision 2.56 by greg, Thu Feb 8 02:26:01 2024 UTC vs.
Revision 2.59 by greg, Fri Apr 4 01:08:33 2025 UTC

# Line 517 | Line 517 | finish_receiver(void)
517                  sprintf(sbuf, "RHS=%c1", curparams.sign);
518                  params = savqstr(sbuf);
519          }
520 <        if (!uniform & (curparams.slist->styp == ST_SOURCE)) {
520 >        if (!uniform) {
521                  SURF    *sp;
522                  for (sp = curparams.slist; sp != NULL; sp = sp->next)
523 <                        if (fabs(sp->area - PI) > 1e-3) {
523 >                        if (sp->styp == ST_SOURCE && fabs(sp->area - PI) > 1e-3) {
524                                  fprintf(stderr, "%s: source '%s' must be 180-degrees\n",
525                                                  progname, sp->sname);
526                                  exit(1);
# Line 1104 | Line 1104 | add_recv_object(FILE *fp)
1104          }
1105                                          /* is it a new receiver? */
1106          if ((st = surf_type(otype)) != ST_NONE) {
1107                if (curparams.slist != NULL && (st == ST_SOURCE) ^
1108                                (curparams.slist->styp == ST_SOURCE)) {
1109                        fputs(progname, stderr);
1110                        fputs(": cannot mix source/non-source receivers!\n", stderr);
1111                        return(-1);
1112                }
1107                  if (strcmp(thismod, curmod)) {
1108                          if (curmod[0]) {        /* output last receiver? */
1109                                  finish_receiver();
# Line 1305 | Line 1299 | main(int argc, char *argv[])
1299                                  if (sampcnt <= 0)
1300                                          goto userr;
1301                                  na = 0;         /* we re-add this later */
1302 <                                break;
1302 >                                continue;
1303                          }
1304 <                        continue;
1304 >                        break;
1305                  case 'I':               /* only for pass-through mode */
1306                  case 'i':
1307                          iropt = argv[a];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines