Commit 1038e01f authored by Turnkey's avatar Turnkey

Merge pull request #5 from ant-t/master

Fix error where layer power is ignored after first layer.
parents ad9862b0 76e84433
......@@ -857,7 +857,7 @@ class Gcode_tools(inkex.Effect):
#G01 : Move with the laser turned on to a new point
elif s[1] == 'line':
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
else:
gcode += "G01 " + self.make_args(si[0]) + "\n"
......@@ -1435,4 +1435,4 @@ class Gcode_tools(inkex.Effect):
e = Gcode_tools()
e.affect()
inkex.errormsg("Finished processing.")
\ No newline at end of file
inkex.errormsg("Finished processing.")
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