mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 19:12:36 +02:00
Small style fix for materialID bounds check in FBXSerializer_Mesh.cpp
This commit is contained in:
parent
53f74abd49
commit
693cdabc2c
1 changed files with 1 additions and 1 deletions
|
@ -492,7 +492,7 @@ ExtractedMesh FBXSerializer::extractMesh(const FBXNode& object, unsigned int& me
|
|||
// Figure out what material this part is
|
||||
if (dracoMeshNodeVersion >= 2) {
|
||||
// Define the materialID now
|
||||
if (materialID <= dracoMaterialList.size() - 1) {
|
||||
if (materialID < dracoMaterialList.size()) {
|
||||
part.materialID = dracoMaterialList[materialID];
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue