This commit is contained in:
Perfare
2018-03-29 01:29:51 +08:00
parent e5104d5cc7
commit 140a732046
4 changed files with 8 additions and 8 deletions

View File

@@ -469,8 +469,10 @@ namespace UnityStudio
bool m_KeepIndices = reader.ReadBoolean();
}
reader.AlignStream(4);
//This is a Unity bug fixed in 2017.3.1p1 and later versions
if ((version[0] > 2017 || (version[0] == 2017 && version[1] >= 4)) || //2017.4
((version[0] == 2017 && version[1] == 3) && m_MeshCompression == 0))//2017.3
((version[0] == 2017 && version[1] == 3 && version[2] == 1) && MeshPD.sourceFile.buildType[0] == "p") || //fixed after 2017.3.1px
((version[0] == 2017 && version[1] == 3) && m_MeshCompression == 0))//2017.3.xfx with no compression
{
var m_IndexFormat = reader.ReadInt32();
}