1
0
mirror of synced 2024-11-30 18:24:39 +01:00

Fix premature root node return (#653)

This commit is contained in:
MediaMoots 2023-08-01 06:53:04 +08:00 committed by GitHub
parent d88ceb5211
commit 7343e99b67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -488,7 +488,15 @@ namespace Toolbox.Library
if (node.HasChildren) if (node.HasChildren)
{ {
foreach (Node child in node.Children) foreach (Node child in node.Children)
return GetSklRoot(child, boneNames); {
Node ChildNode = GetSklRoot(child, boneNames);
if (ChildNode == null)
{
continue;
}
return ChildNode;
}
} }
return null; return null;
} }