mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Added whitelist G0..G4 instead of blacklist
This commit is contained in:
parent
d568531aed
commit
2fc06069ba
1 changed files with 1 additions and 1 deletions
|
@ -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)."""
|
"""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")
|
lines = layer.split("\n")
|
||||||
for line in lines:
|
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:
|
if self.getValue(line, "X") is not None and self.getValue(line, "Y") is not None:
|
||||||
x = self.getValue(line, "X")
|
x = self.getValue(line, "X")
|
||||||
y = self.getValue(line, "Y")
|
y = self.getValue(line, "Y")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue