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

Comparing ray/src/util/ranimove.c (file contents):
Revision 3.7 by schorsch, Sun Jul 27 22:12:03 2003 UTC vs.
Revision 3.8 by greg, Tue Sep 23 03:54:57 2003 UTC

# Line 141 | Line 141 | char   *argv[];
141                                                  /* all done */
142          if (lorendoptf[0])
143                  unlink(lorendoptf);
144 <        if (hirendoptf[0])
144 >        if (hirendoptf[0] && strcmp(hirendoptf, lorendoptf))
145                  unlink(hirendoptf);
146          if (objtmpf[0])
147                  unlink(objtmpf);
# Line 334 | Line 334 | char           *qval;
334          if (qval != NULL && qval[0] == '-')
335                  ac += wordstring(av+ac, qval);
336  
337 <                                /* start with default parameters */
338 <        ray_defaults(NULL);
337 >                                /* restore default parameters */
338 >        ray_restore(NULL);
339                                  /* set what we have */
340          for (i = 0; i < ac; i++) {
341                  while ((rval = expandarg(&ac, &av, i)) > 0)
# Line 349 | Line 349 | char           *qval;
349                          continue;
350                  }
351                  rval = getrenderopt(ac-i, av+i);
352 <                if (rval >= 0) {
353 <                        i += rval;
354 <                        continue;
352 >                if (rval < 0) {
353 >                        sprintf(errmsg, "bad render option at '%s'", av[i]);
354 >                        error(USER, errmsg);
355                  }
356 <                sprintf(errmsg, "bad render option at '%s'", av[i]);
357 <                error(USER, errmsg);
356 >                i += rval;
357          }
358   }
359  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines