mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 20:52:16 +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
|
// 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 {
|
||||||
|
|
Loading…
Reference in a new issue