rm of
This commit is contained in:
9
clay.cm
9
clay.cm
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user