chiark / gitweb /
Allow moving X/Y/E when paused
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 26 Aug 2015 18:23:54 +0000 (14:23 -0400)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 26 Aug 2015 18:23:54 +0000 (14:23 -0400)
Cura/gui/printWindow.py

index 434d2c0c142c5601d3d7b39529dda4a2a63825ed..a39cc459092da95cda11a90de60c14bd70c41d74 100644 (file)
@@ -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))