From 5f50e42535e6e8b10345ee8dd25f86b1875df94e Mon Sep 17 00:00:00 2001 From: Bart Sekura Date: Sat, 23 Jan 2021 09:56:35 +0900 Subject: [PATCH] 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