mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 06:59:03 +08:00
Merge branch '4.3' of ssh://github.com/Ultimaker/Cura into 4.3
This commit is contained in:
commit
1e04a88859
@ -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
|
||||
|
@ -39,4 +39,4 @@ class UFPReader(MeshReader):
|
||||
# Open the GCodeReader to parse the data
|
||||
gcode_reader = PluginRegistry.getInstance().getPluginObject("GCodeReader") # type: ignore
|
||||
gcode_reader.preReadFromStream(gcode_stream) # type: ignore
|
||||
return gcode_reader.readFromStream(gcode_stream) # type: ignore
|
||||
return gcode_reader.readFromStream(gcode_stream, file_name) # type: ignore
|
||||
|
Loading…
x
Reference in New Issue
Block a user