Fix: Fix compilation for clang 14.0.3 (#5223)

* Fix: Fix compilation for clang 14.0.3

- closes https://github.com/assimp/assimp/issues/5203

* Update mesh.h

* Update mesh.h

Fix a typo.
This commit is contained in:
Kim Kulling 2023-09-11 10:51:51 +02:00 committed by GitHub
parent aa1996e143
commit 2af4247260
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -987,7 +987,10 @@ struct aiMesh {
if (mTextureCoordsNames == nullptr) {
// Construct and null-init array
mTextureCoordsNames = new aiString *[AI_MAX_NUMBER_OF_TEXTURECOORDS] {};
mTextureCoordsNames = new aiString *[AI_MAX_NUMBER_OF_TEXTURECOORDS];
for (size_t i=0; i<AI_MAX_NUMBER_OF_TEXTURECOORDS; ++i) {
mTextureCoordsNames[i] = nullptr;
}
}
if (texCoordsName.length == 0) {