chiark / gitweb /
Show a plane in the 3D window during printing to show the printing process.
[cura.git] / Cura / util / sliceEngine.py
index 86ae0b6a5eeafb9d15a58565aee8dfb4aff7c11e..9a5db78fd76b28129b81d278c9340f0c0da759a6 100644 (file)
@@ -48,6 +48,7 @@ class Slicer(object):
                self._printTimeSeconds = None
                self._filamentMM = None
                self._modelHash = None
+               self._id = 0
 
        def cleanup(self):
                self.abortSlicer()
@@ -79,6 +80,9 @@ class Slicer(object):
        def getSliceLog(self):
                return self._sliceLog
 
+       def getID(self):
+               return self._id
+
        def getFilamentWeight(self):
                #Calculates the weight of the filament in kg
                radius = float(profile.getProfileSetting('filament_diameter')) / 2
@@ -168,6 +172,7 @@ class Slicer(object):
                        if self._process is not None:
                                self._process.terminate()
                        oldThread.join()
+               self._id += 1
                self._callback(-1.0, False)
                try:
                        self._process = self._runSliceProcess(commandList)