mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Fix for mesh weights output
This commit is contained in:
parent
978e90a403
commit
dfb74baf79
@ -440,19 +440,19 @@ namespace AssetStudio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
//Logger.Error("");
|
|
||||||
}
|
}
|
||||||
}
|
if (boneType == 0)
|
||||||
else
|
|
||||||
{
|
{
|
||||||
//尝试使用m_BoneNameHashes 4.3 and up
|
//尝试使用m_BoneNameHashes 4.3 and up
|
||||||
if (mesh.m_BindPose.Length > 0 && (mesh.m_BindPose.Length == mesh.m_BoneNameHashes?.Length))
|
if (mesh.m_BindPose.Length > 0 && (mesh.m_BindPose.Length == mesh.m_BoneNameHashes?.Length))
|
||||||
|
{
|
||||||
|
var verifiedBoneCount = mesh.m_BoneNameHashes.Count(x => FixBonePath(GetPathFromHash(x)) != null);
|
||||||
|
if (verifiedBoneCount > 0)
|
||||||
{
|
{
|
||||||
boneType = 2;
|
boneType = 2;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (boneType == 1)
|
if (boneType == 1)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user