Browse Source

Don't apply printspeed to travel moves

As the documentation says, only apply it to extrusion moves.

Done as a 5 minute fix.
Ghostkeeper 4 years ago
parent
commit
cc99c481af
1 changed files with 2 additions and 1 deletions
  1. 2 1
      plugins/PostProcessingPlugin/scripts/ChangeAtZ.py

+ 2 - 1
plugins/PostProcessingPlugin/scripts/ChangeAtZ.py

@@ -1120,7 +1120,8 @@ class ChangeAtZProcessor:
         new_line = self.processRetractFeedRate(extrude_length, feed_rate, new_line, x_coord, y_coord, z_coord)
 
         # handle print speed adjustments
-        new_line = self.processPrintSpeed(feed_rate, new_line)
+        if extrude_length is not None:  # Only for extrusion moves.
+            new_line = self.processPrintSpeed(feed_rate, new_line)
 
         # set our current extrude position
         self.LastE = extrude_length if extrude_length is not None else self.LastE