diff --git a/code/glTF2Importer.cpp b/code/glTF2Importer.cpp index ed7c55792..f474a90b5 100755 --- a/code/glTF2Importer.cpp +++ b/code/glTF2Importer.cpp @@ -755,7 +755,7 @@ static void BuildVertexWeightMapping(Ref& mesh, std::vector 0 && bone >= 0 && bone < map.size()) { + if (weight > 0 && bone < map.size()) { map[bone].reserve(8); map[bone].emplace_back(i, weight); }