From 8f3aaa88f97ef10f732c41efa5cfcba0a5b7d8a6 Mon Sep 17 00:00:00 2001 From: Maarten Heremans Date: Mon, 3 Apr 2017 11:07:43 +0200 Subject: [PATCH] Fixed compiler error on clang 4.0 running on OSX glTFExporter.cpp:585:35: error: ordered comparison between pointer and zero ('aiVector3D *' (aka 'aiVector3t *') and 'int') if(comp_allow && (aim->mNormals > 0)) idx_srcdata_normal = b->byteLength;// Store index of normals array. --- code/glTFExporter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/glTFExporter.cpp b/code/glTFExporter.cpp index 203a46040..36cca86ee 100644 --- a/code/glTFExporter.cpp +++ b/code/glTFExporter.cpp @@ -582,7 +582,7 @@ void glTFExporter::ExportMeshes() if (v) p.attributes.position.push_back(v); /******************** Normals ********************/ - if(comp_allow && (aim->mNormals > 0)) idx_srcdata_normal = b->byteLength;// Store index of normals array. + if(comp_allow && (aim->mNormals != 0)) idx_srcdata_normal = b->byteLength;// Store index of normals array. Ref n = ExportData(*mAsset, meshId, b, aim->mNumVertices, aim->mNormals, AttribType::VEC3, AttribType::VEC3, ComponentType_FLOAT); if (n) p.attributes.normal.push_back(n);