- the font color of the Preferences tab will change to red if settings are not saved and it will revert to default when saved

- fixed issue #333. The Geometry Editor Paint tool was not working and using it resulted in an error
This commit is contained in:
Marius Stanciu
2019-11-06 23:32:21 +02:00
committed by Marius
parent 0fd2037edc
commit 8a8f571f0b
3 changed files with 20 additions and 7 deletions

View File

@@ -4664,17 +4664,16 @@ class FlatCAMGeoEditor(QtCore.QObject):
poly_buf = Polygon(geo_obj).buffer(-margin)
if method == "seed":
cp = Geometry.clear_polygon2(poly_buf,
tooldia, self.app.defaults["geometry_circle_steps"],
cp = Geometry.clear_polygon2(self, polygon_to_clear=poly_buf, tooldia=tooldia,
steps_per_circle=self.app.defaults["geometry_circle_steps"],
overlap=overlap, contour=contour, connect=connect)
elif method == "lines":
cp = Geometry.clear_polygon3(poly_buf,
tooldia, self.app.defaults["geometry_circle_steps"],
cp = Geometry.clear_polygon3(self, polygon=poly_buf, tooldia=tooldia,
steps_per_circle=self.app.defaults["geometry_circle_steps"],
overlap=overlap, contour=contour, connect=connect)
else:
cp = Geometry.clear_polygon(poly_buf,
tooldia, self.app.defaults["geometry_circle_steps"],
cp = Geometry.clear_polygon(self, polygon=poly_buf, tooldia=tooldia,
steps_per_circle=self.app.defaults["geometry_circle_steps"],
overlap=overlap, contour=contour, connect=connect)
if cp is not None: