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

Some more fixes with importing

This commit is contained in:
KillzXGaming 2019-07-05 19:24:56 -04:00
parent 82201ffd4c
commit b10aaed86e
4 changed files with 5 additions and 2 deletions

Binary file not shown.

View File

@ -194,6 +194,7 @@ namespace Switch_Toolbox.Library
{
objects.Clear();
materials.Clear();
BoneNames.Clear();
skeleton = new STSkeleton();
processNode();
@ -439,7 +440,7 @@ namespace Switch_Toolbox.Library
if (node.HasChildren)
{
foreach (Node child in node.Children)
GetSklRoot(child, boneNames);
return GetSklRoot(child, boneNames);
}
return null;
}
@ -707,6 +708,8 @@ namespace Switch_Toolbox.Library
vertices[w.VertexID].boneWeights.Add(w.Weight);
vertices[w.VertexID].boneNames.Add(bn.Name);
if (!BoneNames.Contains(bn.Name))
BoneNames.Add(bn.Name);
}
}