소스 검색

Update glTF2Importer.cpp

haroonq 6 년 전
부모
커밋
e205399052
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      code/glTF2Importer.cpp

+ 1 - 1
code/glTF2Importer.cpp

@@ -755,7 +755,7 @@ static void BuildVertexWeightMapping(Ref<Mesh>& mesh, std::vector<std::vector<ai
         for (int j = 0; j < 4; ++j) {
             const unsigned int bone = indices[i].values[j];
             const float weight = weights[i].values[j];
-            if (weight > 0 && bone >= 0 && bone < map.size()) {
+            if (weight > 0 && bone < map.size()) {
                 map[bone].reserve(8);
                 map[bone].emplace_back(i, weight);
             }