mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 04:23:09 +00:00
BFRES : Fix loading bone attributes from 4 byte format when 3 byte stride
This commit is contained in:
parent
0d33f4ead1
commit
d0fc51c57d
1 changed files with 16 additions and 8 deletions
|
@ -326,16 +326,24 @@ namespace FirstPlugin
|
|||
|
||||
if (vec4w0.Length > 0)
|
||||
{
|
||||
if (fshp.VertexSkinCount > 0)
|
||||
v.boneWeights.Add(vec4w0[i].X);
|
||||
if (fshp.VertexSkinCount > 1)
|
||||
v.boneWeights.Add(vec4w0[i].Y);
|
||||
if (fshp.VertexSkinCount > 2)
|
||||
v.boneWeights.Add(vec4w0[i].Z);
|
||||
if (fshp.VertexSkinCount > 3)
|
||||
v.boneWeights.Add(vec4w0[i].W);
|
||||
}
|
||||
if (vec4i0.Length > 0)
|
||||
{
|
||||
if (fshp.VertexSkinCount > 0)
|
||||
v.boneIds.Add((int)vec4i0[i].X);
|
||||
if (fshp.VertexSkinCount > 1)
|
||||
v.boneIds.Add((int)vec4i0[i].Y);
|
||||
if (fshp.VertexSkinCount > 2)
|
||||
v.boneIds.Add((int)vec4i0[i].Z);
|
||||
if (fshp.VertexSkinCount > 3)
|
||||
v.boneIds.Add((int)vec4i0[i].W);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue