Check for bones before doing bone offset copy
This commit is contained in:
parent
ce98884376
commit
7cba537fc9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue