From 3084f57610db71f2b22f30a35564323cbf1d1838 Mon Sep 17 00:00:00 2001 From: Adrian Mariano Date: Tue, 15 Apr 2025 06:53:59 -0400 Subject: [PATCH] vnf_vertex_array bugfix --- skin.scad | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/skin.scad b/skin.scad index 3772fbaa..244e5e06 100644 --- a/skin.scad +++ b/skin.scad @@ -4764,8 +4764,8 @@ function _textured_point_array(points, texture, tex_reps, tex_size, tex_samples, let( local_scale = [for(y=[-1:1:ptsize.y]) [for(x=[-1:1:ptsize.x]) - ((!col_wrap && (x<0 || x>ptsize.x-1)) - || (!row_wrap && (y<0 || y>ptsize.y-1))) ? undef + ((!col_wrap && (x<0 || x>=ptsize.x-1)) + || (!row_wrap && (y<0 || y>=ptsize.y-1))) ? undef : let( dx = [norm(select(select(points,y),x) - select(select(points,y),x+1)), norm(select(select(points,y+1),x) - select(select(points,y+1),x+1))],