Merge pull request #151 from mafaca/master

fixed compressed mesh reading
This commit is contained in:
Perfare 2018-02-19 14:52:11 +08:00 committed by GitHub
commit 8664531c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -471,7 +471,10 @@ namespace Unity_Studio
a_Stream.AlignStream(4);
if (version[0] > 2017 || (version[0] == 2017 && version[1] >= 3))//2017.3 and up
{
var m_IndexFormat = a_Stream.ReadInt32();
if(m_MeshCompression == 0)
{
var m_IndexFormat = a_Stream.ReadInt32();
}
}
int m_IndexBuffer_size = a_Stream.ReadInt32();