Cleanup and improve #2045

This commit is contained in:
Wojtek Figat
2024-02-24 12:53:33 +01:00
parent de4ee1372f
commit 8bcf4fdaf0
15 changed files with 507 additions and 479 deletions

View File

@@ -77,11 +77,9 @@ namespace FlaxEditor.SceneGraph.Actors
public NavLinkNode(Actor actor)
: base(actor)
{
var bytes = ID.ToByteArray();
bytes[0] += 1;
AddChildNode(new LinkNode(this, new Guid(bytes), true));
bytes[0] += 1;
AddChildNode(new LinkNode(this, new Guid(bytes), false));
var id = ID;
AddChildNode(new LinkNode(this, GetSubID(id, 0), true));
AddChildNode(new LinkNode(this, GetSubID(id, 1), false));
}
/// <inheritdoc />