Update GenVertexNormalsProcess.cpp (#5228)

- closes https://github.com/assimp/assimp/issues/5074
pull/5231/head
Kim Kulling 2023-09-14 00:37:13 +02:00 committed by GitHub
parent f9f7ab0658
commit 59b1234496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -5,8 +5,6 @@ Open Asset Import Library (assimp)
Copyright (c) 2006-2022, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
@ -109,6 +107,7 @@ bool GenVertexNormalsProcess::GenMeshVertexNormals(aiMesh *pMesh, unsigned int m
return false;
}
delete[] pMesh->mNormals;
pMesh->mNormals = nullptr;
}
// If the mesh consists of lines and/or points but not of