From e205399052a86b8e6db6fb8cdefd942dfd934d01 Mon Sep 17 00:00:00 2001 From: haroonq <29288912+haroonq@users.noreply.github.com> Date: Thu, 1 Nov 2018 09:01:19 -0700 Subject: [PATCH] Update glTF2Importer.cpp --- code/glTF2Importer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }