- updated the Gerber parser such that it will parse correctly Gerber files that have only one solid polygon inside with multiple clear polygons (like those generated by the Invert Tool)

This commit is contained in:
Marius Stanciu
2020-05-25 00:37:54 +03:00
committed by Marius
parent a6bdf04937
commit 2623bb0a65
4 changed files with 9 additions and 3 deletions

View File

@@ -1476,7 +1476,7 @@ class Gerber(Geometry):
sol_geo_length = 1
try:
if buff_length == 0 and sol_geo_length in [0, 1]:
if buff_length == 0 and sol_geo_length in [0, 1] and self.solid_geometry.area == 0:
log.error("Object is not Gerber file or empty. Aborting Object creation.")
return 'fail'
except TypeError as e: