Fix vertex skin count output causing static models

This commit is contained in:
KillzXGaming 2019-04-21 13:31:43 -04:00
parent 01aca5cd3e
commit 87e231a94c
8 changed files with 8 additions and 5 deletions

Binary file not shown.

View file

@ -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.