--- ray/src/rt/aniso.c 2003/03/03 00:10:51 2.36 +++ ray/src/rt/aniso.c 2003/08/28 03:22:16 2.40 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: aniso.c,v 2.36 2003/03/03 00:10:51 greg Exp $"; +static const char RCSid[] = "$Id: aniso.c,v 2.40 2003/08/28 03:22:16 greg Exp $"; #endif /* * Shading functions for anisotropic materials. @@ -9,6 +9,8 @@ static const char RCSid[] = "$Id: aniso.c,v 2.36 2003/ #include "ray.h" +#include "ambient.h" + #include "otypes.h" #include "func.h" @@ -318,7 +320,7 @@ register ANISODAT *np; errno = 0; for (i = 0; i < 3; i++) np->u[i] = evalue(mf->ep[i]); - if (errno) { + if (errno == EDOM || errno == ERANGE) { objerror(np->mp, WARNING, "compute error"); np->specfl |= SP_BADU; return;