168 |
|
return lastErr; |
169 |
|
/* try loading variable resolution data */ |
170 |
|
lastErr = SDloadTre(sd, wtl); |
171 |
– |
#if 0 |
171 |
|
/* check our result */ |
172 |
< |
switch (lastErr) { |
174 |
< |
case SDEformat: |
175 |
< |
case SDEdata: |
176 |
< |
case SDEsupport: /* possibly we just tried the wrong format */ |
172 |
> |
if (lastErr == SDEsupport) /* try matrix BSDF if not tree data */ |
173 |
|
lastErr = SDloadMtx(sd, wtl); |
174 |
< |
break; |
179 |
< |
default: /* variable res. OK else serious error */ |
180 |
< |
break; |
181 |
< |
} |
182 |
< |
#endif |
174 |
> |
|
175 |
|
/* done with XML file */ |
176 |
|
ezxml_free(fl); |
177 |
|
|