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! */ |
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 */ |