mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Add 'plugins/CuraEngineBackend/' from commit '918d4b41c8
'
git-subtree-dir: plugins/CuraEngineBackend git-subtree-mainline:49210587ff
git-subtree-split:918d4b41c8
This commit is contained in:
commit
3823afd8cc
6 changed files with 1024 additions and 0 deletions
13
plugins/CuraEngineBackend/ProcessGCodeJob.py
Normal file
13
plugins/CuraEngineBackend/ProcessGCodeJob.py
Normal file
|
@ -0,0 +1,13 @@
|
|||
from UM.Job import Job
|
||||
from UM.Application import Application
|
||||
|
||||
|
||||
class ProcessGCodeLayerJob(Job):
|
||||
def __init__(self, message):
|
||||
super().__init__()
|
||||
|
||||
self._scene = Application.getInstance().getController().getScene()
|
||||
self._message = message
|
||||
|
||||
def run(self):
|
||||
self._scene.gcode_list.append(self._message.data.decode('utf-8', 'replace'))
|
Loading…
Add table
Add a link
Reference in a new issue