Update NodeTree.Component.cs (#2291)

This commit is contained in:
MidoriKami 2025-06-07 09:55:13 -07:00 committed by GitHub
parent 878d892631
commit 7c4e1c44a6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -58,7 +58,13 @@ internal unsafe class ComponentNodeTree : ResNodeTree
/// <inheritdoc/> /// <inheritdoc/>
private protected override void PrintChildNodes() private protected override void PrintChildNodes()
{ {
base.PrintChildNodes(); var prevNode = this.CompNode->Component->UldManager.RootNode;
while (prevNode != null)
{
GetOrCreate(prevNode, this.AddonTree).Print(null);
prevNode = prevNode->PrevSiblingNode;
}
var count = this.UldManager->NodeListCount; var count = this.UldManager->NodeListCount;
PrintNodeListAsTree(this.UldManager->NodeList, count, $"Node List [{count}]:", this.AddonTree, new(0f, 0.5f, 0.8f, 1f)); PrintNodeListAsTree(this.UldManager->NodeList, count, $"Node List [{count}]:", this.AddonTree, new(0f, 0.5f, 0.8f, 1f));
} }