1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-08-17 20:11:50 +02:00

fix bug: z not sorted

This commit is contained in:
Justin Lin
2020-03-13 08:43:17 +08:00
parent be96adb708
commit 91f9df1e61

View File

@@ -10,7 +10,7 @@ function _sort(lt, i) =
function _sort_impl(lt, by, idx) =
let(
dict = [["x", 0], ["y", 1], ["z", 0], ["i", idx]],
dict = [["x", 0], ["y", 1], ["z", 2], ["i", idx]],
i = dict[search(by == "idx" ? "i" : by, dict)[0]][1]
)
_sort(lt, i);