Added sorting layers to nodes

This commit is contained in:
2023-06-29 13:47:35 +10:00
parent 51a0c94ba2
commit 2d6ad5efcc
10 changed files with 39 additions and 44 deletions

View File

@@ -41,6 +41,7 @@ fn alterRemainingSteps(node: opaque, increment: int) {
fn loadChild(parent: opaque, fname: string) {
var child: opaque = loadNode(fname);
parent.pushNode(child);
child.setNodeLayer(parent.getNodeLayer());
return child;
}