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.57 by greg, Tue Mar 19 10:48:05 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();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines