diff options
author | Garret Fick <garret@ficksworkshop.com> | 2016-06-28 23:15:20 +0800 |
---|---|---|
committer | Garret Fick <garret@ficksworkshop.com> | 2016-06-28 23:15:20 +0800 |
commit | b140f5e4767912110f69cbda8417a8e076345b70 (patch) | |
tree | bd9c74ddff137aec3e56e9179999ed4946902af3 /gerber/rs274x.py | |
parent | ccb6eb7a766bd6edf314978f3ec4fc0dcd61652d (diff) | |
download | gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.tar.gz gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.tar.bz2 gerbonara-b140f5e4767912110f69cbda8417a8e076345b70.zip |
Don't flash G03-only commands
Diffstat (limited to 'gerber/rs274x.py')
-rw-r--r-- | gerber/rs274x.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gerber/rs274x.py b/gerber/rs274x.py index ffac66d..384d498 100644 --- a/gerber/rs274x.py +++ b/gerber/rs274x.py @@ -536,6 +536,12 @@ class GerberParser(object): elif stmt.function in ('G02', 'G2', 'G03', 'G3'): self.interpolation = 'arc' self.direction = ('clockwise' if stmt.function in ('G02', 'G2') else 'counterclockwise') + + if stmt.only_function: + # Sometimes we get a coordinate statement + # that only sets the function. If so, don't + # try futher otherwise that might draw/flash something + return if stmt.op: self.op = stmt.op |