Improve skin weight limiter. Should be more similar to the csv script

This commit is contained in:
KillzXGaming 2019-06-05 19:55:51 -04:00
parent f4f946fce5
commit d8dbefa3af
4 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -608,7 +608,7 @@ namespace Bfres.Structs
if (csvsettings.LimitSkinCount) {
for (int i = 0; i < csvModel.objects.Count; i++)
{
List<FSHP> Matches = shapes.Where(p => String.Equals(p.Name,
List<FSHP> Matches = shapes.Where(p => String.Equals(p.Text,
csvModel.objects[i].ObjectName, StringComparison.CurrentCulture)).ToList();
if (Matches != null && Matches.Count > 0)

View file

@ -988,7 +988,7 @@ namespace Bfres.Structs
if (v.boneIds.Count < ob.VertexSkinCount)
{
v.boneIds.Add(0);
v.boneWeights.Add(1);
v.boneWeights.Add(0);
}
}
}