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

Comparing ray/src/util/rad.c (file contents):
Revision 2.119 by greg, Sat Aug 1 23:27:04 2015 UTC vs.
Revision 2.120 by greg, Sun Aug 2 01:32:15 2015 UTC

# Line 832 | Line 832 | renderopts(                    /* set rendering options */
832          if (vdef(RENDER))
833                  op = addarg(op, vval(RENDER));
834          if (rvdevice != NULL) {
835 <                if (vdef(RVU))
835 >                if (vdef(RVU)) {
836                          if (vval(RVU)[0] != '-') {
837                                  atos(c_rvu, sizeof(c_rvu), vval(RVU));
838                                  po = addarg(po, sskip2(vval(RVU), 1));
839                          } else
840                                  po = addarg(po, vval(RVU));
841 +                }
842          } else {
843 <                if (vdef(RPICT))
843 >                if (vdef(RPICT)) {
844                          if (vval(RPICT)[0] != '-') {
845                                  atos(c_rpict, sizeof(c_rpict), vval(RPICT));
846                                  po = addarg(po, sskip2(vval(RPICT), 1));
847                          } else
848                                  po = addarg(po, vval(RPICT));
849 +                }
850          }
851   }
852  
# Line 1145 | Line 1147 | pfiltopts(                             /* get pfilt options */
1147                  po = addarg(po, "-m .25");
1148                  break;
1149          }
1150 <        if (vdef(PFILT))
1150 >        if (vdef(PFILT)) {
1151                  if (vval(PFILT)[0] != '-') {
1152                          atos(c_pfilt, sizeof(c_pfilt), vval(PFILT));
1153                          po = addarg(po, sskip2(vval(PFILT), 1));
1154                  } else
1155                          po = addarg(po, vval(PFILT));
1156 +        }
1157   }
1158  
1159  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines