From 328677aa36749307c1f4ba29cffff09a90addb1e Mon Sep 17 00:00:00 2001 From: Victor Benso Date: Wed, 3 Apr 2019 00:47:41 -0400 Subject: [PATCH] Issue #282 - Paint operations should ignore lines, after all only geometries that have a valid area should be painted. --- flatcamTools/ToolPaint.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flatcamTools/ToolPaint.py b/flatcamTools/ToolPaint.py index d2627093..a3051b8d 100644 --- a/flatcamTools/ToolPaint.py +++ b/flatcamTools/ToolPaint.py @@ -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":