mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00

git-subtree-dir: plugins/CuraEngineBackend git-subtree-mainline:49210587ff
git-subtree-split:918d4b41c8
13 lines
370 B
Python
13 lines
370 B
Python
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'))
|