Fix copyrights.

pull/5249/head
Kim Kulling 2023-02-01 11:28:11 +01:00
parent bad725ec86
commit e5e3e07b84
1 changed files with 23 additions and 13 deletions

View File

@ -3,7 +3,7 @@
Open Asset Import Library (assimp) Open Asset Import Library (assimp)
--------------------------------------------------------------------------- ---------------------------------------------------------------------------
Copyright (c) 2006-2022, assimp team Copyright (c) 2006-2023, assimp team
All rights reserved. All rights reserved.
@ -49,10 +49,10 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// -------------------------------------------------------------------------------- // --------------------------------------------------------------------------------
// Legal information string - don't remove this. // Legal information string - don't remove this.
static const char *LEGAL_INFORMATION = static constexpr char LEGAL_INFORMATION[] =
"Open Asset Import Library (Assimp).\n" "Open Asset Import Library (Assimp).\n"
"A free C/C++ library to import various 3D file formats into applications\n\n" "A free C/C++ library to import various 3D file formats into applications\n\n"
"(c) 2006-2022, Assimp team\n" "(c) 2006-2023, Assimp team\n"
"License under the terms and conditions of the 3-clause BSD license\n" "License under the terms and conditions of the 3-clause BSD license\n"
"https://www.assimp.org\n"; "https://www.assimp.org\n";
@ -150,9 +150,11 @@ ASSIMP_API aiScene::~aiScene() {
// To make sure we won't crash if the data is invalid it's // To make sure we won't crash if the data is invalid it's
// much better to check whether both mNumXXX and mXXX are // much better to check whether both mNumXXX and mXXX are
// valid instead of relying on just one of them. // valid instead of relying on just one of them.
if (mNumMeshes && mMeshes) if (mNumMeshes && mMeshes) {
for (unsigned int a = 0; a < mNumMeshes; a++) for (unsigned int a = 0; a < mNumMeshes; ++a) {
delete mMeshes[a]; delete mMeshes[a];
}
}
delete[] mMeshes; delete[] mMeshes;
if (mNumMaterials && mMaterials) { if (mNumMaterials && mMaterials) {
@ -162,24 +164,32 @@ ASSIMP_API aiScene::~aiScene() {
} }
delete[] mMaterials; delete[] mMaterials;
if (mNumAnimations && mAnimations) if (mNumAnimations && mAnimations) {
for (unsigned int a = 0; a < mNumAnimations; a++) for (unsigned int a = 0; a < mNumAnimations; ++a) {
delete mAnimations[a]; delete mAnimations[a];
}
}
delete[] mAnimations; delete[] mAnimations;
if (mNumTextures && mTextures) if (mNumTextures && mTextures) {
for (unsigned int a = 0; a < mNumTextures; a++) for (unsigned int a = 0; a < mNumTextures; ++a) {
delete mTextures[a]; delete mTextures[a];
}
}
delete[] mTextures; delete[] mTextures;
if (mNumLights && mLights) if (mNumLights && mLights) {
for (unsigned int a = 0; a < mNumLights; a++) for (unsigned int a = 0; a < mNumLights; ++a) {
delete mLights[a]; delete mLights[a];
}
}
delete[] mLights; delete[] mLights;
if (mNumCameras && mCameras) if (mNumCameras && mCameras) {
for (unsigned int a = 0; a < mNumCameras; a++) for (unsigned int a = 0; a < mNumCameras; ++a) {
delete mCameras[a]; delete mCameras[a];
}
}
delete[] mCameras; delete[] mCameras;
aiMetadata::Dealloc(mMetaData); aiMetadata::Dealloc(mMetaData);