Ensure that the aiString lenght is 4 bytes independent which platform and add mingw back to appveyor.

This commit is contained in:
Kim Kulling
2019-09-21 16:36:22 +02:00
parent 83df4f4104
commit 69087abc56
5 changed files with 13 additions and 20 deletions
+1 -1
View File
@@ -385,7 +385,7 @@ void glTF2Importer::ImportMeshes(glTF2::Asset& r)
aim->mName = mesh.name.empty() ? mesh.id : mesh.name;
if (mesh.primitives.size() > 1) {
size_t& len = aim->mName.length;
ai_uint32& len = aim->mName.length;
aim->mName.data[len] = '-';
len += 1 + ASSIMP_itoa10(aim->mName.data + len + 1, unsigned(MAXLEN - len - 1), p);
}