mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add doc for the need of filename in processGCodeStream()
This commit is contained in:
parent
5644721073
commit
46a15762aa
1 changed files with 5 additions and 0 deletions
|
@ -294,6 +294,11 @@ class FlavorParser:
|
||||||
extruder.getProperty("machine_nozzle_offset_y", "value")]
|
extruder.getProperty("machine_nozzle_offset_y", "value")]
|
||||||
return result
|
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"]:
|
def processGCodeStream(self, stream: str, filename: str) -> Optional["CuraSceneNode"]:
|
||||||
Logger.log("d", "Preparing to load GCode")
|
Logger.log("d", "Preparing to load GCode")
|
||||||
self._cancelled = False
|
self._cancelled = False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue