ASE: Add assertion to silence a static analyzer warning

pull/1498/head
Turo Lamminen 2017-11-07 18:45:02 +02:00
parent 856d402b59
commit 4c9f169109
1 changed files with 1 additions and 0 deletions

View File

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