Update mesh.h

pull/5223/head
Kim Kulling 2023-09-10 20:46:12 +02:00 committed by GitHub
parent a21268330a
commit 67a406df8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

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