Skip to content

Commit aa1e0f8

Browse files
committed
Update v3.0.7.1
2 parents 3d7b299 + 1e9acee commit aa1e0f8

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

xivModdingFramework/General/Enums/XivRace.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ private static void AddChildren(XivRaceNode node, Dictionary<ushort, PDB.BoneDef
165165
private static HashSet<XivRace> SkinRaces = new HashSet<XivRace>()
166166
{
167167
XivRace.Hyur_Midlander_Male,
168+
XivRace.Hyur_Midlander_Female,
168169
XivRace.AuRa_Male,
169170
XivRace.AuRa_Female,
170171
XivRace.Hrothgar_Male,
@@ -174,7 +175,11 @@ private static void AddChildren(XivRaceNode node, Dictionary<ushort, PDB.BoneDef
174175
XivRace.Viera_Male,
175176
XivRace.Viera_Female,
176177
XivRace.Roegadyn_Male,
177-
XivRace.Lalafell_Male
178+
XivRace.Lalafell_Male,
179+
XivRace.Hyur_Midlander_Male_NPC,
180+
XivRace.Miqote_Female_NPC,
181+
XivRace.AuRa_Male_NPC,
182+
XivRace.AuRa_Female_NPC,
178183
};
179184
private static XivRaceNode MakeNode(ushort raceId)
180185
{

xivModdingFramework/Models/FileTypes/Mdl.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ public static byte[] MakeUncompressedMdlFile(TTModel ttModel, XivMdl ogMdl, Acti
24272427
{
24282428
var usageInfo = ttModel.GetUsageInfo();
24292429

2430-
var vertexSize = 48;
2430+
var vertexSize = 52;
24312431
if (usageInfo.NeedsEightWeights)
24322432
{
24332433
vertexSize += 8;
@@ -2446,7 +2446,7 @@ public static byte[] MakeUncompressedMdlFile(TTModel ttModel, XivMdl ogMdl, Acti
24462446
{
24472447
vertexSize += 4;
24482448
}
2449-
var shapeVertCount = ttModel.MeshGroups.Sum(m => m.Parts.Sum(p => p.ShapeParts.Sum(s => s.Value.Vertices.Count)));
2449+
var shapeVertCount = ttModel.MeshGroups.Sum(m => m.Parts.Sum(p => p.ShapeParts.Sum(s => s.Key == "original" ? 0 : s.Value.Vertices.Count)));
24502450
var totalVertexCount = shapeVertCount + ttModel.VertexCount;
24512451
var estimatedVertexBufferSize = (vertexSize * totalVertexCount);
24522452

0 commit comments

Comments
 (0)