ASE: Pass a default material name when resizing submaterials buffer

pull/1732/head
Turo Lamminen 2018-01-23 19:54:16 +02:00
parent 4b1b5f1b59
commit 1b28124f21
1 changed files with 1 additions and 1 deletions

View File

@ -706,7 +706,7 @@ void Parser::ParseLV2MaterialBlock(ASE::Material& mat)
ParseLV4MeshLong(iNumSubMaterials);
// allocate enough storage
mat.avSubMaterials.resize(iNumSubMaterials);
mat.avSubMaterials.resize(iNumSubMaterials, Material("INVALID SUBMATERIAL"));
}
// submaterial chunks
if (TokenMatch(filePtr,"SUBMATERIAL",11))