浏览代码

ASE: Add assertion to silence a static analyzer warning

Turo Lamminen 7 年之前
父节点
当前提交
4c9f169109
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      code/ASELoader.cpp

+ 1 - 0
code/ASELoader.cpp

@@ -1021,6 +1021,7 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh
 
                             // convert bones, if existing
                             if (!mesh.mBones.empty()) {
+                                ai_assert(avOutputBones);
                                 // check whether there is a vertex weight for this vertex index
                                 if (iIndex2 < mesh.mBoneVertices.size())    {