From bab1de604f79737de3525ca3e9a6d0d3f977cf61 Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Wed, 15 Mar 2017 13:16:51 +0100 Subject: [PATCH] Less yields for G-code reader and faster. CURA-3390 --- plugins/GCodeReader/GCodeReader.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/GCodeReader/GCodeReader.py b/plugins/GCodeReader/GCodeReader.py index 94b9c0865c..9900f7d7a9 100755 --- a/plugins/GCodeReader/GCodeReader.py +++ b/plugins/GCodeReader/GCodeReader.py @@ -264,6 +264,7 @@ class GCodeReader(MeshReader): current_line += 1 if current_line % file_step == 0: self._message.setProgress(math.floor(current_line / file_lines * 100)) + Job.yieldThread() if len(line) == 0: continue @@ -305,9 +306,6 @@ class GCodeReader(MeshReader): if T is not None: current_position = self._processTCode(T, line, current_position, current_path) - if current_line % 32 == 0: - Job.yieldThread() - if not self._is_layers_in_file and len(current_path) > 1 and current_position[2] > 0: if self._createPolygon(current_position[2], current_path): self._layer_number += 1