diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-05-28 17:03:40 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-05-28 17:03:40 +0800 |
commit | ea97d9d0376db6ff7afcc7669eec84a228f8d201 (patch) | |
tree | 624bf71a375f1d52798d4cd76f3de6cad839e834 /gerber/render/excellon_backend.py | |
parent | 5a20b2b92dc7ab82e1f196d1efbf4bb52a163720 (diff) | |
download | gerbonara-ea97d9d0376db6ff7afcc7669eec84a228f8d201.tar.gz gerbonara-ea97d9d0376db6ff7afcc7669eec84a228f8d201.tar.bz2 gerbonara-ea97d9d0376db6ff7afcc7669eec84a228f8d201.zip |
Fix issue with switching between ROUT and normal drill modes
Diffstat (limited to 'gerber/render/excellon_backend.py')
-rw-r--r-- | gerber/render/excellon_backend.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gerber/render/excellon_backend.py b/gerber/render/excellon_backend.py index c477036..da5b22b 100644 --- a/gerber/render/excellon_backend.py +++ b/gerber/render/excellon_backend.py @@ -142,9 +142,9 @@ class ExcellonContext(GerberContext): self.handled_tools.add(tool) self.header.append(ExcellonTool.from_tool(tool)) - if tool != self.cur_tool: - self.body.append(ToolSelectionStmt(tool.number)) - self.cur_tool = tool + if tool != self.cur_tool: + self.body.append(ToolSelectionStmt(tool.number)) + self.cur_tool = tool # Two types of drilling - normal drill and slots if slot.hit.slot_type == DrillSlot.TYPE_ROUT: @@ -172,8 +172,8 @@ class ExcellonContext(GerberContext): point = self._simplify_point(slot.end) self._pos = slot.end self.body.append(CoordinateStmt.from_point(point, mode="LINEAR")) - - self.drill_down = ExcellonContext.MODE_SLOT + + self.drill_mode = ExcellonContext.MODE_SLOT else: # This is a G85 slot, so do this in normally drilling mode |