Sfoglia il codice sorgente

Update GenVertexNormalsProcess.cpp (#5228)

- closes https://github.com/assimp/assimp/issues/5074
Kim Kulling 2 anni fa
parent
commit
59b1234496
1 ha cambiato i file con 1 aggiunte e 2 eliminazioni
  1. 1 2
      code/PostProcessing/GenVertexNormalsProcess.cpp

+ 1 - 2
code/PostProcessing/GenVertexNormalsProcess.cpp

@@ -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