From 5c932dc5cc0bdc86bee72957fe20a92bc2dd18b8 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Tue, 14 Jan 2020 01:36:37 +0200 Subject: [PATCH] - fixed an issue in Gerber parser introduced recently due of changes made to make Gerber files produced by Sprint Layout --- README.md | 1 + flatcamParsers/ParseGerber.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 414cffad..6e9d4270 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,7 @@ CAD program, and create G-Code for Isolation routing. - fixed a small GUI issue in Excellon UI when Basic mode is active - started the add of a new Tool: Align Objects Tool which will align (sync) objects of Gerber or Excellon type +- fixed an issue in Gerber parser introduced recently due of changes made to make Gerber files produced by Sprint Layout 12.01.2020 diff --git a/flatcamParsers/ParseGerber.py b/flatcamParsers/ParseGerber.py index 7fbfce1f..16ce8f37 100644 --- a/flatcamParsers/ParseGerber.py +++ b/flatcamParsers/ParseGerber.py @@ -835,7 +835,8 @@ class Gerber(Geometry): # --- Buffered --- geo_dict = dict() if current_aperture in self.apertures: - buff_value = float(self.apertures[current_aperture]['size']) / 2.0 + # the following line breaks loading of Circuit Studio Gerber files + # buff_value = float(self.apertures[current_aperture]['size']) / 2.0 # region_geo = Polygon(path).buffer(buff_value, int(self.steps_per_circle)) region_geo = Polygon(path) # Sprint Layout Gerbers with ground fill are crashed with above else: