Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralekseisasin <a.sasin@ultimaker.com>2018-10-17 10:50:22 +0300
committeralekseisasin <a.sasin@ultimaker.com>2018-10-17 10:50:22 +0300
commita7be605b9d3c1cd52bb7323373237f7c7554411d (patch)
treea4e6740303e85fe52aea5cfcef53ca2d8e6a7be9 /plugins/GCodeReader
parent24805b3883ec820976c34cbcecc213dd983504f2 (diff)
Typing error in CI CURA-5769
Diffstat (limited to 'plugins/GCodeReader')
-rw-r--r--plugins/GCodeReader/FlavorParser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/GCodeReader/FlavorParser.py b/plugins/GCodeReader/FlavorParser.py
index 1dc20d5602..9ba1deb410 100644
--- a/plugins/GCodeReader/FlavorParser.py
+++ b/plugins/GCodeReader/FlavorParser.py
@@ -44,7 +44,7 @@ class FlavorParser:
self._extruder_offsets = {} # type: Dict[int, List[float]] # Offsets for multi extruders. key is index, value is [x-offset, y-offset]
self._current_layer_thickness = 0.2 # default
self._filament_diameter = 2.85 # default
- self._previous_extrusion_value = 0 # keep track of the filament retractions
+ self._previous_extrusion_value = 0.0 # keep track of the filament retractions
CuraApplication.getInstance().getPreferences().addPreference("gcodereader/show_caution", True)
@@ -243,7 +243,7 @@ class FlavorParser:
position.e)
def processGCode(self, G: int, line: str, position: Position, path: List[List[Union[float, int]]]) -> Position:
- self.previous_extrusion_value = 0
+ self._previous_extrusion_value = 0.0
func = getattr(self, "_gCode%s" % G, None)
line = line.split(";", 1)[0] # Remove comments (if any)
if func is not None: