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

Comparing ray/src/rt/preload.c (file contents):
Revision 2.10 by greg, Fri Feb 18 00:40:25 2011 UTC vs.
Revision 2.11 by greg, Fri Feb 18 02:41:55 2011 UTC

# Line 18 | Line 18 | static const char      RCSid[] = "$Id$";
18   #include "data.h"
19   #include "func.h"
20   #include "bsdf.h"
21 #include "paths.h"
21  
22  
23   /* KEEP THIS ROUTINE CONSISTENT WITH THE DIFFERENT OBJECT FUNCTIONS! */
# Line 106 | Line 105 | load_os(                       /* load associated data for object */
105                  if (op->oargs.nsargs < 6)
106                          goto sargerr;
107                  getfunc(op, 5, 0x1d, 1);
108 <                sd = SDgetCache(op->oargs.sarg[1]);
110 <                if (sd != NULL && !SDisLoaded(sd))
111 <                        SDloadFile(sd, getpath(op->oargs.sarg[1],
112 <                                                getrlibpath(), R_OK));
108 >                loadBSDF(op->oargs.sarg[1]);
109                  return(1);
110          case MAT_PDATA:         /* plastic BRDF data */
111          case MAT_MDATA:         /* metal BRDF data */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines