Fix invalid use of material reference.

This commit is contained in:
Kim Kulling
2022-04-27 20:21:30 +02:00
committed by GitHub
parent 37ec378b60
commit 174b2fcf59

View File

@@ -648,10 +648,11 @@ void Parser::ParseLV2MaterialBlock(ASE::Material &mat) {
// get a reference to the material
if (iIndex < mat.avSubMaterials.size()) {
Material &sMat = mat.avSubMaterials[iIndex];
// parse the material block
ParseLV2MaterialBlock(sMat);
}
// parse the material block
ParseLV2MaterialBlock(sMat);
continue;
}
}