use std::isfinite()

GCC is more standards compliant than MSVC
pull/2429/head
RichardTea 2019-04-17 14:30:40 +01:00
parent e8bcf162dd
commit c34327b355
1 changed files with 3 additions and 3 deletions

View File

@ -332,13 +332,13 @@ size_t ObjFileParser::getTexCoordVector( std::vector<aiVector3D> &point3d_array
}
// Coerce nan and inf to 0 as is the OBJ default value
if (!isfinite(x))
if (!std::isfinite(x))
x = 0;
if (!isfinite(y))
if (!std::isfinite(y))
y = 0;
if (!isfinite(z))
if (!std::isfinite(z))
z = 0;
point3d_array.push_back( aiVector3D( x, y, z ) );