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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.80 by greg, Thu Jul 4 01:06:35 2019 UTC vs.
Revision 2.81 by greg, Thu Jul 4 01:25:07 2019 UTC

# Line 146 | Line 146 | rtrace(                                /* trace rays from file */
146          case 'f': putreal = putf; break;
147          case 'd': putreal = putd; break;
148          case 'c':
149 <                if (outvals[0] && (outvals[1] || !strchr("vVWrx", outvals[0])))
150 <                        error(USER, "color format only with one of 'vVWrx'");
149 >                if (outvals[0] && (outvals[1] || !strchr("vrx", outvals[0])))
150 >                        error(USER, "color format only with -ov, -or, -ox");
151                  putreal = putrgbe; break;
152          default:
153                  error(CONSISTENCY, "botched output format");
# Line 316 | Line 316 | setoutput(                             /* set up output tables */
316                          break;
317                  }
318          *table = NULL;
319 <        if (do_irrad | imm_irrad)                       /* compatibile? */
320 <                for (table = ray_out; *table != NULL; table++)
321 <                        if ((*table == oputr) | (*table == oputR) |
322 <                                        (*table == oputx) | (*table == oputX)) {
323 <                                error(WARNING, "-orRxX options incompatible with -I+ and -i+");
324 <                                break;
325 <                        }
319 >                                                        /* compatibility */
320 >        for (table = ray_out; *table != NULL; table++) {
321 >                if ((*table == oputV) | (*table == oputW))
322 >                        error(WARNING, "-oVW options require trace mode");
323 >                if ((do_irrad | imm_irrad) &&
324 >                                (*table == oputr) | (*table == oputR) |
325 >                                (*table == oputx) | (*table == oputX))
326 >                        error(WARNING, "-orRxX options incompatible with -I+ and -i+");
327 >        }
328   }
329  
330  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines