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.38 by greg, Sun Mar 4 23:28:34 2012 UTC vs.
Revision 2.39 by greg, Mon Mar 5 00:17:06 2012 UTC

# Line 92 | Line 92 | SDloadGeometry(SDData *sd, ezxml_t wdb)
92  
93          if (wdb == NULL)                /* no geometry section? */
94                  return SDEnone;
95 +        if ((geom = ezxml_child(wdb, "Name")) != NULL) {
96 +                strncpy(sd->matn, ezxml_txt(geom), SDnameLn);
97 +                sd->matn[SDnameLn-1] = '\0';
98 +        }
99 +        if ((geom = ezxml_child(wdb, "Manufacturer")) != NULL) {
100 +                strncpy(sd->makr, ezxml_txt(geom), SDnameLn);
101 +                sd->makr[SDnameLn-1] = '\0';
102 +        }
103          sd->dim[0] = sd->dim[1] = sd->dim[2] = .0;
104          SDerrorDetail[0] = '\0';
105          if ((geom = ezxml_child(wdb, "Width")) != NULL)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines