# | Line 1 | Line 1 | |
---|---|---|
1 | #ifndef lint | |
2 | < | static const char RCSid[] = "$Id$"; |
2 | > | static const char RCSid[] = "$Id$"; |
3 | #endif | |
4 | /* | |
5 | * Shading functions for anisotropic materials. | |
# | Line 9 | Line 9 | static const char RCSid[] = "$Id$"; | |
9 | ||
10 | #include "ray.h" | |
11 | ||
12 | + | #include "ambient.h" |
13 | + | |
14 | #include "otypes.h" | |
15 | ||
16 | #include "func.h" | |
# | Line 318 | Line 320 | register ANISODAT *np; | |
320 | errno = 0; | |
321 | for (i = 0; i < 3; i++) | |
322 | np->u[i] = evalue(mf->ep[i]); | |
323 | < | if (errno) { |
323 | > | if (errno == EDOM || errno == ERANGE) { |
324 | objerror(np->mp, WARNING, "compute error"); | |
325 | np->specfl |= SP_BADU; | |
326 | return; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |