diff options
Diffstat (limited to 'source/blender/freestyle/intern/system/PseudoNoise.cpp')
-rw-r--r-- | source/blender/freestyle/intern/system/PseudoNoise.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/freestyle/intern/system/PseudoNoise.cpp b/source/blender/freestyle/intern/system/PseudoNoise.cpp index e4fe497e064..6083a46d609 100644 --- a/source/blender/freestyle/intern/system/PseudoNoise.cpp +++ b/source/blender/freestyle/intern/system/PseudoNoise.cpp @@ -25,14 +25,14 @@ * \date 16/06/2003 */ -#include <math.h> +#include "BLI_math.h" #include "PseudoNoise.h" #include "RandGen.h" static int modf_to_index(Freestyle::real x, unsigned int range) { - if (isfinite(x)) { + if (finite(x)) { Freestyle::real tmp; int i = abs((int)(modf(x, &tmp) * range)); BLI_assert(i >= 0 && i < range); |