Explorar el Código

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

Victor Benso hace 6 años
padre
commit
328677aa36
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      flatcamTools/ToolPaint.py

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