Browse Source

Add doc for the need of filename in processGCodeStream()

Lipu Fei 5 years ago
parent
commit
46a15762aa
1 changed files with 5 additions and 0 deletions
  1. 5 0
      plugins/GCodeReader/FlavorParser.py

+ 5 - 0
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