Browse Source

added missing return

Bart Sekura 4 năm trước cách đây
mục cha
commit
5f50e42535
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      code/PostProcessing/ValidateDataStructure.cpp

+ 1 - 0
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