From f8c512acd73abda82360102484f06dd2603bb278 Mon Sep 17 00:00:00 2001 From: Bart Sekura Date: Sat, 23 Jan 2021 09:52:46 +0900 Subject: [PATCH 1/2] changed morph anim error to warning when validating --- code/PostProcessing/ValidateDataStructure.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/PostProcessing/ValidateDataStructure.cpp b/code/PostProcessing/ValidateDataStructure.cpp index e7392d9e5..c39578d43 100644 --- a/code/PostProcessing/ValidateDataStructure.cpp +++ b/code/PostProcessing/ValidateDataStructure.cpp @@ -844,7 +844,7 @@ void ValidateDSProcess::Validate(const aiAnimation *pAnimation, Validate(&pMeshMorphAnim->mName); if (!pMeshMorphAnim->mNumKeys) { - ReportError("Empty mesh morph animation channel"); + ReportWarning("Empty mesh morph animation channel"); } // otherwise check whether one of the keys exceeds the total duration of the animation From 5f50e42535e6e8b10345ee8dd25f86b1875df94e Mon Sep 17 00:00:00 2001 From: Bart Sekura Date: Sat, 23 Jan 2021 09:56:35 +0900 Subject: [PATCH 2/2] added missing return --- code/PostProcessing/ValidateDataStructure.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/PostProcessing/ValidateDataStructure.cpp b/code/PostProcessing/ValidateDataStructure.cpp index c39578d43..3e0224eac 100644 --- a/code/PostProcessing/ValidateDataStructure.cpp +++ b/code/PostProcessing/ValidateDataStructure.cpp @@ -845,6 +845,7 @@ void ValidateDSProcess::Validate(const aiAnimation *pAnimation, if (!pMeshMorphAnim->mNumKeys) { ReportWarning("Empty mesh morph animation channel"); + return; } // otherwise check whether one of the keys exceeds the total duration of the animation