mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-22 12:33:12 +00:00
Fix vertex skin count output causing static models
This commit is contained in:
parent
01aca5cd3e
commit
87e231a94c
8 changed files with 8 additions and 5 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -890,11 +890,6 @@ namespace Bfres.Structs
|
|||
shape.VertexBufferIndex = shapes.Count;
|
||||
shape.vertices = obj.vertices;
|
||||
|
||||
progressBar.Task = $"Generating Max Skin Influence. Mesh: {obj.ObjectName}";
|
||||
progressBar.Refresh();
|
||||
|
||||
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
|
||||
|
||||
progressBar.Task = $"Creating Attributes. Mesh: {obj.ObjectName}";
|
||||
progressBar.Refresh();
|
||||
|
||||
|
@ -937,6 +932,14 @@ namespace Bfres.Structs
|
|||
|
||||
shape.BoneIndices = shape.GetIndices(Skeleton);
|
||||
|
||||
progressBar.Task = $"Generating Max Skin Influence. Mesh: {obj.ObjectName}";
|
||||
progressBar.Refresh();
|
||||
|
||||
shape.VertexSkinCount = obj.GetMaxSkinInfluenceCount();
|
||||
|
||||
Console.WriteLine($"VertexSkinCount 1 {shape.VertexSkinCount}");
|
||||
|
||||
|
||||
progressBar.Task = $"Saving shape. Mesh: {obj.ObjectName}";
|
||||
progressBar.Refresh();
|
||||
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading…
Reference in a new issue