support missing closing brace in material list after Ascii Scene Exporter v2.51

pull/3844/head
Garux 2021-04-30 10:37:06 +03:00
parent 96d0524fab
commit 149224091f
1 changed files with 6 additions and 0 deletions

View File

@ -498,6 +498,12 @@ void Parser::ParseLV1MaterialListBlock() {
ParseLV2MaterialBlock(sMat);
continue;
}
if( iDepth == 1 ){
// CRUDE HACK: support missing brace after "Ascii Scene Exporter v2.51"
LogWarning("Missing closing brace in material list");
--filePtr;
return;
}
}
AI_ASE_HANDLE_TOP_LEVEL_SECTION();
}