diff --git a/include/assimp/Vertex.h b/include/assimp/Vertex.h index ad5ff476c..f2e5572d3 100644 --- a/include/assimp/Vertex.h +++ b/include/assimp/Vertex.h @@ -135,7 +135,9 @@ public: /** Extract a particular vertex from a anim mesh and interleave all components */ explicit Vertex(const aiAnimMesh* msh, unsigned int idx) { ai_assert(idx < msh->mNumVertices); - position = msh->mVertices[idx]; + if (msh->HasPositions()) { + position = msh->mVertices[idx]; + } if (msh->HasNormals()) { normal = msh->mNormals[idx];