Another importing fix from my stupid mistakes
This commit is contained in:
parent
b10aaed86e
commit
f5e7996bd3
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user