Commit 76e84433 authored by Anton Todorov's avatar Anton Todorov

Fix error where layer power is ignored after first layer.

parent ad9862b0
...@@ -857,7 +857,7 @@ class Gcode_tools(inkex.Effect): ...@@ -857,7 +857,7 @@ class Gcode_tools(inkex.Effect):
#G01 : Move with the laser turned on to a new point #G01 : Move with the laser turned on to a new point
elif s[1] == 'line': elif s[1] == 'line':
if not firstGCode: #Include the ppm values for the first G01 command in the set. if not firstGCode: #Include the ppm values for the first G01 command in the set.
gcode += "G01 " + self.make_args(si[0]) + "S%.2f " % laserPower + "%s " % cutFeed + "%s" % ppmValue + "\n" gcode += "G01 " + self.make_args(si[0]) + " S%.2f " % laserPower + "%s " % cutFeed + "%s" % ppmValue + "\n"
firstGCode = True firstGCode = True
else: else:
gcode += "G01 " + self.make_args(si[0]) + "\n" gcode += "G01 " + self.make_args(si[0]) + "\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment