mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-18 14:31:50 +00:00
MD2 models with more than 32768 vertices were not loaded properly.
This commit is contained in:
parent
e90473e7d9
commit
d42a7459d7
1 changed files with 6 additions and 6 deletions
|
@ -397,13 +397,13 @@ namespace CodeImp.DoomBuilder.GZBuilder.MD3
|
|||
s.Position = ofs_tris + start;
|
||||
|
||||
for (int i = 0; i < num_tris; i++) {
|
||||
polyIndecesList.Add((int)br.ReadInt16());
|
||||
polyIndecesList.Add((int)br.ReadInt16());
|
||||
polyIndecesList.Add((int)br.ReadInt16());
|
||||
polyIndecesList.Add((int)br.ReadUInt16());
|
||||
polyIndecesList.Add((int)br.ReadUInt16());
|
||||
polyIndecesList.Add((int)br.ReadUInt16());
|
||||
|
||||
uvIndecesList.Add((int)br.ReadInt16());
|
||||
uvIndecesList.Add((int)br.ReadInt16());
|
||||
uvIndecesList.Add((int)br.ReadInt16());
|
||||
uvIndecesList.Add((int)br.ReadUInt16());
|
||||
uvIndecesList.Add((int)br.ReadUInt16());
|
||||
uvIndecesList.Add((int)br.ReadUInt16());
|
||||
}
|
||||
|
||||
//UV coords
|
||||
|
|
Loading…
Reference in a new issue