Fix premature root node return (#653)
This commit is contained in:
parent
d88ceb5211
commit
7343e99b67
@ -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 New Issue
Block a user