Remove _profile from start slice job parameters

Instead, the start slice job searches for the container stack itself.

Contributes to issue CURA-1278.
This commit is contained in:
Ghostkeeper 2016-05-23 13:56:42 +02:00
parent a0645a44c8
commit 63bf5bec3d
2 changed files with 3 additions and 3 deletions

View file

@ -154,7 +154,7 @@ class CuraEngineBackend(Backend):
self._slicing = True self._slicing = True
self.slicingStarted.emit() self.slicingStarted.emit()
job = StartSliceJob.StartSliceJob(self._profile, self._socket) job = StartSliceJob.StartSliceJob(self._socket)
job.start() job.start()
job.finished.connect(self._onStartSliceCompleted) job.finished.connect(self._onStartSliceCompleted)

View file

@ -31,11 +31,11 @@ class GcodeStartEndFormatter(Formatter):
## Job that handles sending the current scene data to CuraEngine ## Job that handles sending the current scene data to CuraEngine
class StartSliceJob(Job): class StartSliceJob(Job):
def __init__(self, profile, socket): def __init__(self, socket):
super().__init__() super().__init__()
self._scene = Application.getInstance().getController().getScene() self._scene = Application.getInstance().getController().getScene()
self._profile = profile self._settings = Application.getInstance().getGlobalContainerStack()
self._socket = socket self._socket = socket
## Runs the job that initiates the slicing. ## Runs the job that initiates the slicing.