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

Comparing ray/src/util/wrapBSDF.c (file contents):
Revision 2.7 by greg, Mon Feb 16 19:11:28 2015 UTC vs.
Revision 2.10 by greg, Fri Feb 20 17:05:40 2015 UTC

# Line 294 | Line 294 | mat_assignments(const char *caller, const char *fn, ez
294          if (xml_input == win6_template)
295              for (i = 0; XMLfieldID[i].nickName[0]; i++)
296                  if (XMLfieldID[i].win_need &&
297 <                        !ezxml_txt(ezxml_child(wtl,XMLfieldID[i].fullName))[0]) {
297 >                        !ezxml_txt(ezxml_child(wtl,XMLfieldID[i].fullName))[0])
298                          fprintf(stderr,
299 <                        "%s: missing required '%s' assignment for WINDOW <%s>\n",
299 >                        "%s: warning - missing '%s' assignment for WINDOW <%s>\n",
300                                          caller, XMLfieldID[i].nickName,
301                                          XMLfieldID[i].fullName);
302 <                        return 0;
303 <                }
304 <        return 1;               /* no errors */
302 >        return 1;
303   }
304  
305   /* Complete angle basis specification */
# Line 775 | Line 773 | main(int argc, char *argv[])
773                                  UsageExit(argv[0]);
774                          continue;
775                  case 'c':               /* correct solid angle */
776 <                        correct_solid_angle ^= 1;
776 >                        correct_solid_angle = 1;
777                          continue;
778                  case 't':               /* transmission */
779                          if (i >= argc-1)
# Line 818 | Line 816 | main(int argc, char *argv[])
816                                  argv[i] = (char *)stdin_name;
817                          }
818                          data_file[ndataf].fname = argv[i];
819 <                        data_file[ndataf++].spectrum = cur_spectrum;
819 >                        data_file[ndataf].spectrum = cur_spectrum;
820 >                        ndataf++;
821                          continue;
822                  case 's':               /* spectrum name or input file */
823                          if (++i >= argc)
# Line 880 | Line 879 | doneOptions:                                   /* get XML input */
879          } else {
880                  xml_input = argv[i];
881          }
883        if ((xml_input == win6_template) & (angle_basis == ABdefault))
884                angle_basis = ABklemsFull;
882                                                  /* wrap it! */
883          return !wrapBSDF(argv[0]);
884   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines