Fix invalid use of material reference.
parent
37ec378b60
commit
174b2fcf59
|
@ -648,10 +648,11 @@ void Parser::ParseLV2MaterialBlock(ASE::Material &mat) {
|
||||||
// get a reference to the material
|
// get a reference to the material
|
||||||
if (iIndex < mat.avSubMaterials.size()) {
|
if (iIndex < mat.avSubMaterials.size()) {
|
||||||
Material &sMat = mat.avSubMaterials[iIndex];
|
Material &sMat = mat.avSubMaterials[iIndex];
|
||||||
|
|
||||||
|
// parse the material block
|
||||||
|
ParseLV2MaterialBlock(sMat);
|
||||||
}
|
}
|
||||||
|
|
||||||
// parse the material block
|
|
||||||
ParseLV2MaterialBlock(sMat);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue