This commit is contained in:
2026-01-19 01:06:51 -06:00
parent a199278e7d
commit 86530871e6
19 changed files with 133 additions and 140 deletions

View File

@@ -202,12 +202,9 @@ function build_drawables(node, root_height, parent_abs_x, parent_abs_y, parent_s
}
// Children
for (var child of node.children) {
var child_drawables = build_drawables(child, root_height, vis_x, vis_y, current_scissor, parent_layer + 0.01)
for (var i = 0; i < length(child_drawables); i++) {
drawables.push(child_drawables[i])
}
}
arrfor(node.children, function(child) {
drawables = array(drawables, build_drawables(child, root_height, vis_x, vis_y, current_scissor, parent_layer + 0.01))
})
return drawables
}