mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-11-12 23:32:42 -05:00
Fix support for meshes with omitted weight values. Close #21
This commit is contained in:
@ -963,6 +963,13 @@ namespace AssetStudio
|
|||||||
if (m_Skin == null)
|
if (m_Skin == null)
|
||||||
{
|
{
|
||||||
InitMSkin();
|
InitMSkin();
|
||||||
|
if (m_Channel.dimension == 1)
|
||||||
|
{
|
||||||
|
for (var i = 0; i < m_VertexCount; i++)
|
||||||
|
{
|
||||||
|
m_Skin[i].weight[0] = 1f;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
for (var i = 0; i < m_VertexCount; i++)
|
for (var i = 0; i < m_VertexCount; i++)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user