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 + )