From 8b522a8a58a5ac8005e52bd6acdc7083124000ac Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 7 Aug 2020 15:29:55 +0200 Subject: [PATCH] Fix crash when processLinearMove gets called on something else than G0 or G1 Return the original line then. --- plugins/PostProcessingPlugin/scripts/ChangeAtZ.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py b/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py index f4041b8650..e34f1d80eb 100644 --- a/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py +++ b/plugins/PostProcessingPlugin/scripts/ChangeAtZ.py @@ -1101,7 +1101,7 @@ class ChangeAtZProcessor: # if it's not a linear move, we don't care if linear_command is None: - return + return line # get our linear move parameters feed_rate = linear_command.Arguments["F"]