1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-11 01:04:07 +02:00

fix rc error

This commit is contained in:
Justin Lin
2022-03-16 09:15:25 +08:00
parent 9a1ac9a363
commit deb875b147

View File

@@ -15,16 +15,14 @@ function mz_square_cells(rows, columns, start = [0, 0], init_cells, x_wrapping =
let( let(
init_undef = is_undef(init_cells), init_undef = is_undef(init_cells),
mz = init_undef ? mz_square_initialize(rows, columns) : init_cells, mz = init_undef ? mz_square_initialize(rows, columns) : init_cells,
rc = init_undef ? r = len([for(cell = mz) if(cell.x == 0) undef]),
[rows, columns] : c = len([for(cell = mz) if(cell.y == 0) undef])
let(r = len([for(cell = mz) if(cell.y == 0) undef]))
[r, len(mz) - r]
) )
go_maze( go_maze(
start.x, start.x,
start.y, start.y,
mz, mz,
rc[0], rc[1], r, c,
x_wrapping, x_wrapping,
y_wrapping, y_wrapping,
seed seed