mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
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:
parent
a0645a44c8
commit
63bf5bec3d
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
|
@ -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.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue