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:
authoradripo <adrian.polimi@gmail.com>2020-06-11 18:38:06 +0300
committerGitHub <noreply@github.com>2020-06-11 18:38:06 +0300
commit2fc06069baf87d396a0d850085002cf26c6d56c9 (patch)
treea1355a5f67cb1a332775fda37c2d31066805b66e /plugins/PostProcessingPlugin
parentd568531aed1565ce1f4c65a902d9f2030f4a5b9d (diff)
Added whitelist G0..G4 instead of blacklist
Diffstat (limited to 'plugins/PostProcessingPlugin')
-rw-r--r--plugins/PostProcessingPlugin/scripts/PauseAtHeight.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
index 6673c790da..8ed1bb8942 100644
--- a/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
+++ b/plugins/PostProcessingPlugin/scripts/PauseAtHeight.py
@@ -204,7 +204,7 @@ class PauseAtHeight(Script):
"""Get the X and Y values for a layer (will be used to get X and Y of the layer after the pause)."""
lines = layer.split("\n")
for line in lines:
- if not line.startswith("M205"):
+ if line.startswith(("G0", "G1", "G2", "G3")):
if self.getValue(line, "X") is not None and self.getValue(line, "Y") is not None:
x = self.getValue(line, "X")
y = self.getValue(line, "Y")