Small style fix for materialID bounds check in FBXSerializer_Mesh.cpp

This commit is contained in:
sabrina-shanman 2019-04-17 13:26:19 -07:00
parent 53f74abd49
commit 693cdabc2c

View file

@ -492,7 +492,7 @@ ExtractedMesh FBXSerializer::extractMesh(const FBXNode& object, unsigned int& me
// Figure out what material this part is // Figure out what material this part is
if (dracoMeshNodeVersion >= 2) { if (dracoMeshNodeVersion >= 2) {
// Define the materialID now // Define the materialID now
if (materialID <= dracoMaterialList.size() - 1) { if (materialID < dracoMaterialList.size()) {
part.materialID = dracoMaterialList[materialID]; part.materialID = dracoMaterialList[materialID];
} }
} else { } else {