Skip to content

Commit

Permalink
clear debug before drawing curves
Browse files Browse the repository at this point in the history
  • Loading branch information
PadLex committed Jul 8, 2022
1 parent f145eda commit d102748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion laser/laser.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ def effect(self):
elif self.options.machine_origin == "top-left":
transformation.add_translation(0, self.options.bed_height)

self.clear_debug()
curves = parse_root(root, transform_origin=not self.options.invert_y_axis, root_transformation=transformation,
canvas_height=self.options.bed_height)

gcode_compiler.append_curves(curves)
gcode_compiler.compile_to_file(output_path, passes=self.options.passes)

# Draw debug lines
self.clear_debug()
if self.options.draw_debug:
self.draw_debug_traces(curves)
self.draw_unit_reference()
Expand Down

0 comments on commit d102748

Please sign in to comment.