Browse Source

Remove extra empty lines in ChangeAtZ-scipt output.

Remco Burema 5 years ago
parent
commit
756c21cd19
1 changed files with 2 additions and 0 deletions
  1. 2 0
      plugins/PostProcessingPlugin/scripts/ChangeAtZ.py

+ 2 - 0
plugins/PostProcessingPlugin/scripts/ChangeAtZ.py

@@ -367,6 +367,8 @@ class ChangeAtZ(Script):
             modified_gcode = ""
             lines = active_layer.split("\n")
             for line in lines:
+                if line.strip() == "":
+                    continue
                 if ";Generated with Cura_SteamEngine" in line:
                     TWinstances += 1
                     modified_gcode += ";ChangeAtZ instances: %d\n" % TWinstances