Skip to content

Commit

Permalink
Added check if empty data has been found by Fast3D parser
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSM64 committed Nov 9, 2018
1 parent c73a738 commit 6378026
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Scripts/Fast3DScripts.cs
Original file line number Diff line number Diff line change
@@ -110,6 +110,12 @@ public static void parse(ref Model3D mdl, ref Level lvl, byte seg, uint off, byt
if (bytesToInt(cmd, 0, 4) != 0)
return;
break;
case CMD.F3D_MTX:
desc = "G_MTX";
// Detect if empty data has been found.
if (bytesToLong(cmd, 0) == 0x0101010101010101)
return;
break;
case CMD.F3D_MOVEMEM:
switchTextureStatus(ref mdl, ref tempMaterial, true, areaID);
F3D_MOVEMEM(ref tempMaterial, ref lvl, cmd, ref desc, areaID);

0 comments on commit 6378026

Please sign in to comment.