Skip to content

Commit 3178509

Browse files
committed
Revert urface material id "fix"
1 parent c34a2a7 commit 3178509

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

Src/GBX.NET/Engines/Plug/CPlugSurface.cs

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,6 @@ public override void ReadWrite(CPlugSurface n, GbxReaderWriter rw)
5959
}
6060
else
6161
{
62-
if (rw.Writer is not null && n.materials is not null)
63-
{
64-
var materialIds = new ushort[n.materials.Length];
65-
for (var i = 0; i < n.materials.Length; i++)
66-
{
67-
materialIds[i] = (ushort)((int?)n.materials[i].SurfaceId ?? 0);
68-
}
69-
U02 = materialIds;
70-
}
71-
7262
rw.Array<ushort>(ref U02);
7363
}
7464

0 commit comments

Comments
 (0)