Fixed bug
This commit is contained in:
parent
1f897cf431
commit
b04cdbf12b
|
@ -571,7 +571,6 @@ namespace AssetStudio
|
|||
#region 2018 and up
|
||||
if (version[0] >= 2018)
|
||||
{
|
||||
InitMSkin();
|
||||
foreach (var m_Channel in m_Channels)
|
||||
{
|
||||
if (m_Channel.dimension > 0)
|
||||
|
@ -639,8 +638,16 @@ namespace AssetStudio
|
|||
case 7: //kShaderChannelTexCoord3
|
||||
m_UV4 = componentsFloatArray;
|
||||
break;
|
||||
//kShaderChannelTexCoord4 8
|
||||
//kShaderChannelTexCoord5 9
|
||||
//kShaderChannelTexCoord6 10
|
||||
//kShaderChannelTexCoord7 11
|
||||
//2018.2 and up
|
||||
case 12:
|
||||
case 12: //kShaderChannelBlendWeight
|
||||
if (m_Skin == null)
|
||||
{
|
||||
InitMSkin();
|
||||
}
|
||||
for (int i = 0; i < m_VertexCount; i++)
|
||||
{
|
||||
for (int j = 0; j < 4; j++)
|
||||
|
@ -649,7 +656,11 @@ namespace AssetStudio
|
|||
}
|
||||
}
|
||||
break;
|
||||
case 13:
|
||||
case 13: //kShaderChannelBlendIndices
|
||||
if (m_Skin == null)
|
||||
{
|
||||
InitMSkin();
|
||||
}
|
||||
for (int i = 0; i < m_VertexCount; i++)
|
||||
{
|
||||
for (int j = 0; j < 4; j++)
|
||||
|
|
|
@ -353,7 +353,7 @@ namespace AssetStudio
|
|||
iVertex.Tangent = new Vector4(-mesh.m_Tangents[j * 4], mesh.m_Tangents[j * 4 + 1], mesh.m_Tangents[j * 4 + 2], mesh.m_Tangents[j * 4 + 3]);
|
||||
}
|
||||
//BoneInfluence
|
||||
if (mesh.m_Skin.Length > 0)
|
||||
if (mesh.m_Skin?.Length > 0)
|
||||
{
|
||||
var inf = mesh.m_Skin[j];
|
||||
iVertex.BoneIndices = new byte[inf.Count];
|
||||
|
|
Loading…
Reference in New Issue