mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-20 12:49:38 +08:00
Fixed next XY return position after pause
This commit is contained in:
parent
6d7d7bdb95
commit
d568531aed
@ -204,10 +204,11 @@ 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 self.getValue(line, "X") is not None and self.getValue(line, "Y") is not None:
|
if not line.startswith("M205"):
|
||||||
x = self.getValue(line, "X")
|
if self.getValue(line, "X") is not None and self.getValue(line, "Y") is not None:
|
||||||
y = self.getValue(line, "Y")
|
x = self.getValue(line, "X")
|
||||||
return x, y
|
y = self.getValue(line, "Y")
|
||||||
|
return x, y
|
||||||
return 0, 0
|
return 0, 0
|
||||||
|
|
||||||
def execute(self, data: List[str]) -> List[str]:
|
def execute(self, data: List[str]) -> List[str]:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user