Some more fixes with importing
This commit is contained in:
parent
82201ffd4c
commit
b10aaed86e
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user