mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Merge pull request #151 from mafaca/master
fixed compressed mesh reading
This commit is contained in:
commit
8664531c47
@ -470,9 +470,12 @@ namespace Unity_Studio
|
|||||||
}
|
}
|
||||||
a_Stream.AlignStream(4);
|
a_Stream.AlignStream(4);
|
||||||
if (version[0] > 2017 || (version[0] == 2017 && version[1] >= 3))//2017.3 and up
|
if (version[0] > 2017 || (version[0] == 2017 && version[1] >= 3))//2017.3 and up
|
||||||
|
{
|
||||||
|
if(m_MeshCompression == 0)
|
||||||
{
|
{
|
||||||
var m_IndexFormat = a_Stream.ReadInt32();
|
var m_IndexFormat = a_Stream.ReadInt32();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
int m_IndexBuffer_size = a_Stream.ReadInt32();
|
int m_IndexBuffer_size = a_Stream.ReadInt32();
|
||||||
|
|
||||||
if (m_Use16BitIndices)
|
if (m_Use16BitIndices)
|
||||||
|
Loading…
Reference in New Issue
Block a user