std::absf to std::fabsf
parent
e86d40e4e2
commit
b575acf2b6
|
@ -225,7 +225,7 @@ void PlyExporter::WriteMeshVerts(const aiMesh* m, unsigned int components)
|
||||||
m->mVertices[i].z
|
m->mVertices[i].z
|
||||||
;
|
;
|
||||||
if(components & PLY_EXPORT_HAS_NORMALS) {
|
if(components & PLY_EXPORT_HAS_NORMALS) {
|
||||||
if (m->HasNormals() && is_not_qnan(m->mNormals[i].x) && std::absf(m->mNormals[i].x) != inf) {
|
if (m->HasNormals() && is_not_qnan(m->mNormals[i].x) && std::fabsf(m->mNormals[i].x) != inf) {
|
||||||
mOutput <<
|
mOutput <<
|
||||||
" " << m->mNormals[i].x <<
|
" " << m->mNormals[i].x <<
|
||||||
" " << m->mNormals[i].y <<
|
" " << m->mNormals[i].y <<
|
||||||
|
|
Loading…
Reference in New Issue