Przeglądaj źródła

- fixed an issue in Gerber parser introduced recently due of changes made to make Gerber files produced by Sprint Layout

Marius Stanciu 6 lat temu
rodzic
commit
5c932dc5cc
2 zmienionych plików z 3 dodań i 1 usunięć
  1. 1 0
      README.md
  2. 2 1
      flatcamParsers/ParseGerber.py

+ 1 - 0
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
 

+ 2 - 1
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: