Skip to content

Commit

Permalink
use std::isfinite()
Browse files Browse the repository at this point in the history
GCC is more standards compliant than MSVC
  • Loading branch information
RichardTea committed Apr 17, 2019
1 parent e8bcf16 commit c34327b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/ObjFileParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ) );
Expand Down

0 comments on commit c34327b

Please sign in to comment.