Issue #282 - Paint operations should ignore lines, after all only geometries that have a valid area should be painted.

This commit is contained in:
Victor Benso 2019-04-03 00:47:41 -04:00
parent 98370ada8d
commit 328677aa36
1 changed files with 2 additions and 1 deletions

View File

@ -1068,8 +1068,9 @@ class ToolPaint(FlatCAMTool, Gerber):
for geo in recurse(obj.solid_geometry):
try:
#Polygons are the only really paintable geometries, lines in theory have no area to be painted
if not isinstance(geo, Polygon):
geo = Polygon(geo)
continue
poly_buf = geo.buffer(-paint_margin)
if paint_method == "seed":