From 27cd61b19bbc92c093d45598c853b113f08a6dcd Mon Sep 17 00:00:00 2001 From: TenTech <45683060+TengerTechnologies@users.noreply.github.com> Date: Sat, 1 Feb 2025 20:13:48 +0100 Subject: [PATCH] Update bricklayersNonPlanarInfill.py --- bricklayersNonPlanarInfill.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bricklayersNonPlanarInfill.py b/bricklayersNonPlanarInfill.py index 0fdbb0d..46508da 100644 --- a/bricklayersNonPlanarInfill.py +++ b/bricklayersNonPlanarInfill.py @@ -314,7 +314,7 @@ def process_wall_shifting(lines, layer_height, extrusion_multiplier, enable_wall def get_layer_height(gcode_lines): """Extract layer height from G-code header comments""" for line in gcode_lines: - if "layer_height =" in line.lower(): + if "; layer_height =" in line.lower(): match = re.search(r'layer_height = (\d*\.?\d+)', line, re.IGNORECASE) if match: return float(match.group(1)) @@ -386,4 +386,4 @@ if __name__ == "__main__": enable_wall_reorder=bool(args.wallReorder), amplitude=args.amplitude, frequency=args.frequency, - ) \ No newline at end of file + )