Fix vertex skin count output causing static models
This commit is contained in:
parent
01aca5cd3e
commit
87e231a94c
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…
x
Reference in New Issue
Block a user