Skip to content

Commit 6471806

Browse files
committed
Fix for reading invalid/repeated shape data.
1 parent b078b60 commit 6471806

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

xivModdingFramework/Models/Helpers/ModelModifiers.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,10 @@ public static void MergeShapeData(TTModel ttModel, XivMdl ogMdl, Action<bool, st
686686
// Because we're using the index offset that's relative to the original model's mesh group index list.
687687
var indexId = d.BaseIndex;
688688

689-
ttPart.Replacements.Add(indexId, vertexId);
689+
if (!ttPart.Replacements.ContainsKey(indexId))
690+
{
691+
ttPart.Replacements.Add(indexId, vertexId);
692+
}
690693
}
691694
newGroup.ShapeParts.Add(ttPart);
692695
}

0 commit comments

Comments
 (0)