mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-26 22:40:27 +00:00
Improve skin weight limiter. Should be more similar to the csv script
This commit is contained in:
parent
f4f946fce5
commit
d8dbefa3af
4 changed files with 2 additions and 2 deletions
Binary file not shown.
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in a new issue