1
0
mirror of synced 2024-12-01 02:27:22 +01:00

BFRES : Rename duplicate bone names when new bones are imported.

This commit is contained in:
KillzXGaming 2020-06-30 18:43:33 -04:00
parent b48e0af34b
commit 82f104d8f1

View File

@ -523,11 +523,13 @@ namespace Bfres.Structs
{
BfresBone bn = new BfresBone(fskl);
List<string> boneKeys = fskl.bones.Select(i => i.Text).ToList();
if (SkeletonU != null)
{
ResU.Bone bone = new ResU.Bone();
bone.Import(FileName, GetResFileU());
bone.ParentIndex = -1;
bone.Name = Utils.RenameDuplicateString(boneKeys, bone.Name);
BfresWiiU.ReadBone(bn, bone, false);
@ -542,6 +544,7 @@ namespace Bfres.Structs
Bone bone = new Bone();
bone.Import(FileName);
bone.ParentIndex = -1;
bone.Name = Utils.RenameDuplicateString(boneKeys, bone.Name);
BfresSwitch.ReadBone(bn, bone, false);