- the Plugins object combo boxes are no longer updated on object selection on Project tab generally but only for the Plugin that is current, if any

- in Corner Markers Plugin I added a new feature, ability to insert existing markers into external objects. Finished the work for external Gerbers and work in progress for the external Geometry
This commit is contained in:
Marius Stanciu
2021-10-08 01:53:36 +03:00
committed by Marius
parent 26354e1f9e
commit 6f884f4d64
14 changed files with 453 additions and 122 deletions

View File

@@ -459,6 +459,7 @@ class GerberObject(FlatCAMObj, Gerber):
if not self.options["noncopperrounded"]:
bounding_box = bounding_box.envelope
non_copper = bounding_box.difference(self.solid_geometry)
non_copper = flatten_shapely_geometry(non_copper)
if non_copper is None or non_copper.is_empty:
app_obj.inform.emit("[ERROR_NOTCL] %s" % _("Operation could not be done."))
@@ -489,6 +490,8 @@ class GerberObject(FlatCAMObj, Gerber):
if bounding_box is None or bounding_box.is_empty:
app_obj.inform.emit("[ERROR_NOTCL] %s" % _("Operation could not be done."))
return "fail"
bounding_box = flatten_shapely_geometry(bounding_box)
geo_obj.solid_geometry = bounding_box
self.app.app_obj.new_object("geometry", name, geo_init)