mirror of
https://github.com/KillzXGaming/Switch-Toolbox
synced 2024-11-10 07:04:36 +00:00
Fix premature root node return (#653)
This commit is contained in:
parent
d88ceb5211
commit
7343e99b67
1 changed files with 9 additions and 1 deletions
|
@ -488,7 +488,15 @@ namespace Toolbox.Library
|
|||
if (node.HasChildren)
|
||||
{
|
||||
foreach (Node child in node.Children)
|
||||
return GetSklRoot(child, boneNames);
|
||||
{
|
||||
Node ChildNode = GetSklRoot(child, boneNames);
|
||||
if (ChildNode == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
return ChildNode;
|
||||
}
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue