1
0
mirror of synced 2024-09-23 19:18:21 +02:00

Attempt to fix the incorrect skeleton being exported for bfres animation exporting

This commit is contained in:
KillzXGaming 2023-06-20 16:38:23 -04:00
parent 3718385d40
commit 79b51dd7ed

View File

@ -218,13 +218,17 @@ namespace Bfres.Structs
{
if (drawable is STSkeleton)
{
bool areAllBonesPresent = ((STSkeleton)drawable).bones.Count > 0;
foreach (var bone in Bones)
{
var animBone = ((STSkeleton)drawable).GetBone(bone.Text);
if (animBone != null)
return (STSkeleton)drawable;
if (animBone == null)
areAllBonesPresent = false;
}
if (areAllBonesPresent)
return ((STSkeleton)drawable);
}
}
}