Custom G-code that switches to G91 and back through a macro, such as
RESTORE_GCODE_STATE, left the fan mover's reader in relative positioning
for the rest of the print, so it measured every later move wrong and
split none. Orca's own moves, which follow a role tag, are absolute, or
the print itself would go wrong, so put the reader back to absolute
positioning at each role tag.
GCodeReader read every X, Y and Z as absolute, also after G91. Custom
G-code that lifts the nozzle with "G91 / G1 Z2 / G90" left the reader
2 mm low, and the next absolute Z move looked like a move up. When the
fan mover then split that move to place a fan command earlier, it
wrote a Z between the wrong height and the target, so the nozzle dipped
into the print. Track G90 and G91, and make the distances and targets
of a line relative while G91 is in effect. The fan mover no longer
splits a move read in relative mode, since the split writes absolute
coordinates.
Ported from Snapmaker/OrcaSlicer@99d613e354
Co-authored-by: lhx <luohaoxuan@snapmaker.com>