1
0
mirror of synced 2024-11-12 10:10:50 +01:00

fix rigid skins from csv

This commit is contained in:
LockeExile 2019-08-25 13:07:43 -07:00
parent 7fa31fdcd3
commit 50bd4e2e65

View File

@ -7,6 +7,7 @@ using Toolbox.Library;
using Toolbox.Library.Rendering;
using System.Windows.Forms;
using OpenTK;
using System.Linq;
namespace FirstPlugin
{
@ -87,7 +88,6 @@ namespace FirstPlugin
Vertex vtx = new Vertex();
STGenericObject.LOD_Mesh lod = new STGenericObject.LOD_Mesh();
int Index = 0;
int ww = 0;
while (true)
{
line = csv.ReadLine();
@ -277,6 +277,7 @@ namespace FirstPlugin
foreach (float f in obj.weightsT[v])
obj.vertices[v].boneWeights.Add(f);
}
obj.VertexSkinCount = (byte)obj.vertices.Max(v => v.boneNames.Count);
int vID = 0;
foreach (Vertex v in obj.vertices)