From 993bd617aab7d7e9f28aabdf9abce87a85506c63 Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 25 Aug 2019 18:12:59 +0800 Subject: [PATCH] fix end cond --- src/pixel/px_from.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pixel/px_from.scad b/src/pixel/px_from.scad index 57b23fbc..50dc2a01 100644 --- a/src/pixel/px_from.scad +++ b/src/pixel/px_from.scad @@ -25,7 +25,7 @@ function px_from(binaries, center = false, invert = false) = offset_i = height / 2 ) [ - for(i = height - 1; i > 0; i = i - 1) + for(i = height - 1; i > -1; i = i - 1) let(row = _px_from_row(height - i - 1, binaries[i], width, height, center, invert)) if(row != []) each row ]; \ No newline at end of file