1
0
mirror of synced 2024-09-24 11:38:22 +02:00

Another importing fix from my stupid mistakes

This commit is contained in:
KillzXGaming 2019-07-05 19:28:49 -04:00
parent b10aaed86e
commit f5e7996bd3
4 changed files with 10 additions and 9 deletions

Binary file not shown.

View File

@ -202,7 +202,16 @@ namespace Switch_Toolbox.Library
if (scene.RootNode != null)
{
var idenity = Matrix4x4.Identity;
var SklRoot = GetSklRoot(scene.RootNode, BoneNames);
if (SklRoot != null)
{
BuildSkeletonNodes(SklRoot, BoneNames, skeleton, ref idenity);
}
else
{
BuildSkeletonNodes(scene.RootNode, BoneNames, skeleton, ref idenity);
}
skeleton.update();
skeleton.reset();
@ -481,20 +490,12 @@ namespace Switch_Toolbox.Library
else
{
if (node.HasChildren)
{
var SklRoot = GetSklRoot(node, boneNames);
if (SklRoot != null)
{
BuildSkeletonNodes(SklRoot, boneNames, skeleton, ref world);
}
else
{
foreach (Node child in node.Children)
BuildSkeletonNodes(child, boneNames, skeleton, ref world);
}
}
}
}
private List<Node> tempBoneNodes = new List<Node>();
private void CreateByNode(Node node, STSkeleton skeleton, string ParentArmatureName,