浏览代码

std::absf to std::fabsf

David Jordan 10 年之前
父节点
当前提交
b575acf2b6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      code/PlyExporter.cpp

+ 1 - 1
code/PlyExporter.cpp

@@ -225,7 +225,7 @@ void PlyExporter::WriteMeshVerts(const aiMesh* m, unsigned int components)
 			m->mVertices[i].z
 		;
 		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 << 
 					" " << m->mNormals[i].x << 
 					" " << m->mNormals[i].y <<