From c285e6b014f38716b257b6cc77245c37ac62b4f1 Mon Sep 17 00:00:00 2001 From: Paulo Henrique Silva Date: Sun, 26 Oct 2014 22:27:12 -0200 Subject: style change --- gerber/rs274x.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gerber') diff --git a/gerber/rs274x.py b/gerber/rs274x.py index c01f027..f7be44d 100644 --- a/gerber/rs274x.py +++ b/gerber/rs274x.py @@ -386,12 +386,13 @@ class GerberParser(object): def _evaluate_coord(self, stmt): x = self.x if stmt.x is None else stmt.x y = self.y if stmt.y is None else stmt.y + if stmt.function in ("G01", "G1"): self.interpolation = 'linear' elif stmt.function in ('G02', 'G2', 'G03', 'G3'): self.interpolation = 'arc' - self.direction = ('clockwise' if stmt.function in ('G02', 'G2') - else 'counterclockwise') + self.direction = ('clockwise' if stmt.function in ('G02', 'G2') else 'counterclockwise') + if stmt.op == "D01": if self.region_mode == 'on': if self.current_region is None: -- cgit