From f0652c39f7a5a3b48512b6402b2f70ee9cdd402e Mon Sep 17 00:00:00 2001 From: Justin Lin Date: Sun, 8 May 2022 17:00:09 +0800 Subject: [PATCH] refactor --- src/turtle/_impl/_lsystem_comm.scad | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/turtle/_impl/_lsystem_comm.scad b/src/turtle/_impl/_lsystem_comm.scad index 27a4fa6c..298af978 100644 --- a/src/turtle/_impl/_lsystem_comm.scad +++ b/src/turtle/_impl/_lsystem_comm.scad @@ -71,6 +71,6 @@ function _lines(t, codes, angle, leng, next_t2, turtle_p) = t2 = next_t2(t1, codes[i], angle, leng) ) let(p1 = turtle_p(t1), p2 = turtle_p(t2)) - if(search(codes[i], "F+-") != [] && p1 != p2) + if(p1 != p2 && search(codes[i], "F+-") != []) [p1, p2] ]; \ No newline at end of file