Handle version 3 model polygons correctly

This commit is contained in:
Jarrod Doyle 2024-08-17 20:54:10 +01:00
parent 3ccd37ea11
commit 2f701c471b
Signed by: Jayrude
GPG Key ID: 38B57B16E7C0ADF7
1 changed files with 3 additions and 1 deletions

View File

@ -64,7 +64,9 @@ struct Polygon {
if (type == 0x1B) {
u16 uv_indices[vertex_count];
}
u8 material; // Only in version 4
if (parent.version == 4) {
u8 material;
}
};
struct Model {