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

Comparing ray/src/common/bsdf.c (file contents):
Revision 2.10 by greg, Thu Jan 6 04:36:16 2011 UTC vs.
Revision 2.11 by greg, Thu Jan 6 04:39:08 2011 UTC

# Line 219 | Line 219 | load_angle_basis(      /* load custom BSDF angle basis */
219          if (!abname || !*abname)
220                  return;
221          for (i = nabases; i--; )
222 <                if (!strcmp(abname, abase_list[i].name))
222 >                if (!strcasecamp(abname, abase_list[i].name))
223                          return;         /* assume it's the same */
224          if (nabases >= MAXABASES)
225                  error(INTERNAL, "too many angle bases");
# Line 320 | Line 320 | load_bsdf_data(                /* load BSDF distribution for this wa
320                  return;
321          }
322          for (i = nabases; i--; )
323 <                if (!strcmp(cbasis, abase_list[i].name)) {
323 >                if (!strcasecamp(cbasis, abase_list[i].name)) {
324                          dp->ninc = abase_list[i].nangles;
325                          dp->ib_priv = (void *)&abase_list[i];
326                          dp->ib_vec = ab_getvecR;
# Line 334 | Line 334 | load_bsdf_data(                /* load BSDF distribution for this wa
334                  return;
335          }
336          for (i = nabases; i--; )
337 <                if (!strcmp(rbasis, abase_list[i].name)) {
337 >                if (!strcasecamp(rbasis, abase_list[i].name)) {
338                          dp->nout = abase_list[i].nangles;
339                          dp->ob_priv = (void *)&abase_list[i];
340                          dp->ob_vec = ab_getvec;
# Line 542 | Line 542 | load_BSDF(             /* load BSDF data from file */
542          load_geometry(dp, ezxml_child(wtl, "Material"));
543          for (wld = ezxml_child(wtl, "WavelengthData");
544                                  wld != NULL; wld = wld->next) {
545 <                if (strcmp(ezxml_txt(ezxml_child(wld,"Wavelength")), "Visible"))
545 >                if (strcasecamp(ezxml_txt(ezxml_child(wld,"Wavelength")), "Visible"))
546                          continue;
547                  wdb = ezxml_child(wld, "WavelengthDataBlock");
548                  if (wdb == NULL) continue;
549 <                if (strcmp(ezxml_txt(ezxml_child(wdb,"WavelengthDataDirection")),
549 >                if (strcasecamp(ezxml_txt(ezxml_child(wdb,"WavelengthDataDirection")),
550                                          "Transmission Front"))
551                          continue;
552                  load_bsdf_data(dp, wdb);        /* load front BTDF */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines