1
0
mirror of synced 2025-01-19 01:14:08 +01:00

Fix dae exporting weights FINALLY!

This commit is contained in:
KillzXGaming 2019-03-29 19:21:59 -04:00
parent 5d0254a5e2
commit 29e9a0533d
6 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -103,7 +103,9 @@ namespace Switch_Toolbox.Library
//Check if the max amount of weights is higher than the current bone id
if (v.boneWeights.Count > j)
{
if (v.boneWeights[j] <= 1)
if (v.boneWeights[j] <= 0)
mesh.Bones[boneInd].VertexWeights.Add(new VertexWeight(vertexID, 1));
else if (v.boneWeights[j] <= 1)
mesh.Bones[boneInd].VertexWeights.Add(new VertexWeight(vertexID, v.boneWeights[j]));
else
mesh.Bones[boneInd].VertexWeights.Add(new VertexWeight(vertexID, 1));