CAM: fix refactored postprocessors crashing on blank lines

This commit is contained in:
jffmichi
2025-05-20 01:58:32 +02:00
parent 4713e4b854
commit 323be59aa7

View File

@@ -720,11 +720,12 @@ def parse_a_path(values: Values, gcode: Gcode, pathobj) -> None:
command_line = []
# Modify the command name if necessary
if command[0] == "(":
if command.startswith("("):
if not values["OUTPUT_COMMENTS"]:
continue
if values["COMMENT_SYMBOL"] != "(" and len(command) > 2:
command = create_comment(values, command[1:-1])
cmd = check_for_an_adaptive_op(values, command, command_line, adaptive_op_variables)
if cmd:
command = cmd