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:
@@ -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
|
||||||
|
Reference in New Issue
Block a user