diff options
author | adripo <adrian.polimi@gmail.com> | 2020-06-11 18:38:06 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 18:38:06 +0300 |
commit | 2fc06069baf87d396a0d850085002cf26c6d56c9 (patch) | |
tree | a1355a5f67cb1a332775fda37c2d31066805b66e /plugins/PostProcessingPlugin | |
parent | d568531aed1565ce1f4c65a902d9f2030f4a5b9d (diff) |
Added whitelist G0..G4 instead of blacklist
Diffstat (limited to 'plugins/PostProcessingPlugin')
-rw-r--r-- | plugins/PostProcessingPlugin/scripts/PauseAtHeight.py | 2 |
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") |