diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2019-09-05 15:19:48 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2019-09-05 15:19:48 +0300 |
commit | 46a15762aa6602dcc812c09ef60a56a65596da08 (patch) | |
tree | 4a693febc5d3efb1f880bba47e9bfb1201f29b85 /plugins/GCodeReader | |
parent | 564472107305cd16896f4f6882fda05ee4d7d588 (diff) |
Add doc for the need of filename in processGCodeStream()
Diffstat (limited to 'plugins/GCodeReader')
-rw-r--r-- | plugins/GCodeReader/FlavorParser.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/GCodeReader/FlavorParser.py b/plugins/GCodeReader/FlavorParser.py index 89812e7202..d05338ae4d 100644 --- a/plugins/GCodeReader/FlavorParser.py +++ b/plugins/GCodeReader/FlavorParser.py @@ -294,6 +294,11 @@ class FlavorParser: extruder.getProperty("machine_nozzle_offset_y", "value")] return result + # + # CURA-6643 + # This function needs the filename so it can be set to the SceneNode. Otherwise, if you load a GCode file and press + # F5, that gcode SceneNode will be removed because it doesn't have a file to be reloaded from. + # def processGCodeStream(self, stream: str, filename: str) -> Optional["CuraSceneNode"]: Logger.log("d", "Preparing to load GCode") self._cancelled = False |