diff --git a/code/glTF2Importer.cpp b/code/glTF2Importer.cpp index f474a90b5..277eddcfd 100755 --- a/code/glTF2Importer.cpp +++ b/code/glTF2Importer.cpp @@ -788,11 +788,10 @@ aiNode* ImportNode(aiScene* pScene, glTF2::Asset& r, std::vector& GetNodeTransform(ainode->mTransformation, node); if (!node.meshes.empty()) { - int mesh_idx = node.meshes[0].GetIndex(); - int count = meshOffsets[mesh_idx + 1] - meshOffsets[mesh_idx]; // GLTF files contain at most 1 mesh per node. assert(node.meshes.size() == 1); - assert(count == 1); + int mesh_idx = node.meshes[0].GetIndex(); + int count = meshOffsets[mesh_idx + 1] - meshOffsets[mesh_idx]; ainode->mNumMeshes = count; ainode->mMeshes = new unsigned int[count];