From: Youness Alaoui Date: Wed, 26 Aug 2015 18:23:54 +0000 (-0400) Subject: Allow moving X/Y/E when paused X-Git-Tag: lulzbot-15.02.1-2.04~11 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=164159b0a9326956b4cbd3c842bb68d1f6b4aae6;p=cura.git Allow moving X/Y/E when paused --- diff --git a/Cura/gui/printWindow.py b/Cura/gui/printWindow.py index 434d2c0c..a39cc459 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))