Fix compile on MSVC, we don't use "isfinite" anywhere else inside source/blender ;)

This commit is contained in:
2013-12-17 21:36:27 +01:00
parent d41b2bb25f
commit 173f7a3d30

View File

@@ -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);