Skip to content

Commit 02be9c4

Browse files
committed
- Fixed Shape Data being loaded with incorrect Bone IDs
- Fixed Roe F skin parent.
1 parent 7bd79ce commit 02be9c4

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

xivModdingFramework/General/Enums/XivRace.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -510,6 +510,13 @@ public static XivRace GetSkinRace(this XivRace race)
510510
return XivRace.Hyur_Midlander_Male;
511511
}
512512

513+
// Roe F is very weird and uses Highlander F's skin materials,
514+
// but Midlander F's models. Blame SE hard-coding shit.
515+
if(node.Race == XivRace.Roegadyn_Female)
516+
{
517+
return XivRace.Hyur_Highlander_Female;
518+
}
519+
513520
if (node.HasSkin)
514521
{
515522
return node.Race;

xivModdingFramework/Models/Helpers/ModelModifiers.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,8 @@ public static void MergeShapeData(TTModel ttModel, XivMdl ogMdl, Action<bool, st
598598
var oldBoneSet = new List<string>();
599599
for (int bi = 0; bi < oldBoneSetRaw.BoneIndexCount; bi++)
600600
{
601-
oldBoneSet.Add(ogMdl.PathData.BoneList[bi]);
601+
var bbi = oldBoneSetRaw.BoneIndices[bi];
602+
oldBoneSet.Add(ogMdl.PathData.BoneList[bbi]);
602603
}
603604

604605
// No shape data for groups that don't exist in the old model.

0 commit comments

Comments
 (0)