mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 10:09:02 +08:00
Add doc for the need of filename in processGCodeStream()
This commit is contained in:
parent
5644721073
commit
46a15762aa
@ -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…
x
Reference in New Issue
Block a user