mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Attempt to fix the incorrect skeleton being exported for bfres animation exporting
This commit is contained in:
parent
3718385d40
commit
79b51dd7ed
1 changed files with 6 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue