forked from viewit/OrcaSlicer-KX
extrude_to_xyz() unconditionally emitted Z on every extrusion move via emit_xyz(), even when Z hadn't changed. With ZAA enabled, this produced ~987K redundant Z coordinates (98.2% of all Z emissions), causing 10-20% file bloat. Now compares quantized Z values before and after, and only emits Z when it actually differs at export precision (0.001mm). Reduces ZAA gcode Z emissions from 1,038,468 to 50,022 while preserving all legitimate contouring Z changes.