mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Fix index out of range error from the skin count > 4 fix
This commit is contained in:
parent
deeff8e9a9
commit
396f9a9df2
1 changed files with 5 additions and 2 deletions
|
@ -1889,8 +1889,11 @@ namespace Bfres.Structs
|
|||
// Save a v4 set each time v4Index hits 3 (.w)
|
||||
if (v4Index == 3)
|
||||
{
|
||||
weights[v4ListIndex].Add(vWeight4);
|
||||
boneInd[v4ListIndex].Add(vBoneInd4);
|
||||
if (weights.Count > v4ListIndex)
|
||||
weights[v4ListIndex].Add(vWeight4);
|
||||
if (weights.Count > v4ListIndex)
|
||||
boneInd[v4ListIndex].Add(vBoneInd4);
|
||||
|
||||
v4ListIndex++;
|
||||
v4Index = 0;
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue