Check for bones before doing bone offset copy

This commit is contained in:
Xiao Qi 2023-01-30 16:38:05 +08:00
parent ce98884376
commit 7cba537fc9
1 changed files with 5 additions and 0 deletions

View File

@ -181,6 +181,11 @@ namespace SH_COMP
void MeshCompiler::BoneOffsetCopy(ModelRef asset) noexcept
{
if (asset.meshHeaders[0].boneCount == 0)
{
return;
}
auto const& boneVec {asset.meshes[0].bones};
std::stack<RigNodeData*> nodeStack;