diff options
author | Youness Alaoui <kakaroto@kakaroto.homelinux.net> | 2015-08-26 21:23:54 +0300 |
---|---|---|
committer | Youness Alaoui <kakaroto@kakaroto.homelinux.net> | 2015-08-26 21:23:54 +0300 |
commit | 164159b0a9326956b4cbd3c842bb68d1f6b4aae6 (patch) | |
tree | 515cd4037947dc2a6841ed78f71b67e6efd6d359 | |
parent | 2e133c1e3681cd4f7d3364539ff2f3ca5c372a42 (diff) |
Allow moving X/Y/E when paused
-rw-r--r-- | Cura/gui/printWindow.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index 434d2c0c14..a39cc45909 100644 --- a/Cura/gui/printWindow.py +++ b/Cura/gui/printWindow.py @@ -782,9 +782,10 @@ class printWindowAdvanced(wx.Frame): self._colorCommandMap[(r, g, b)] = (command, step) def _moveXYZE(self, motor, step, feedrate): + # Prevent Z movement when paused and all moves when printing if (not self._printerConnection.hasActiveConnection() or \ self._printerConnection.isActiveConnectionOpen()) and \ - (not self._printerConnection.isPaused() and \ + (not (self._printerConnection.isPaused() and motor == 'Z') and \ not self._printerConnection.isPrinting()): self._printerConnection.sendCommand("G91") self._printerConnection.sendCommand("G1 %s%.1f F%d" % (motor, step, feedrate)) |