mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2025-02-16 22:08:26 +00:00
CMB : fix reading unknowns in mesh section
This commit is contained in:
parent
7d4ef5adde
commit
fe68a22e0c
1 changed files with 3 additions and 3 deletions
|
@ -1008,11 +1008,11 @@ namespace FirstPlugin
|
|||
Meshes.Add(mesh);
|
||||
|
||||
if (header.Version == CMBVersion.OOT3DS)
|
||||
mesh.unks = reader.ReadBytes(4);
|
||||
mesh.unks = reader.ReadBytes(1);
|
||||
else if (header.Version == CMBVersion.MM3DS)
|
||||
mesh.unks = reader.ReadBytes(0x0C);
|
||||
mesh.unks = reader.ReadBytes(9);
|
||||
else if (header.Version >= CMBVersion.LM3DS)
|
||||
mesh.unks = reader.ReadBytes(0x58);
|
||||
mesh.unks = reader.ReadBytes(85);
|
||||
|
||||
Console.WriteLine($"SepdIndex {mesh.SepdIndex}");
|
||||
Console.WriteLine($"MaterialIndex { mesh.MaterialIndex}");
|
||||
|
|
Loading…
Add table
Reference in a new issue