1
0
mirror of synced 2024-11-12 02:00:50 +01: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;
BuildSkeletonNodes(scene.RootNode, BoneNames, skeleton, ref idenity);
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();
@ -482,16 +491,8 @@ namespace Switch_Toolbox.Library
{
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);
}
}
}
}