- fixed an issue with the moving shape when creating an exclusion area

- added ability to copy the coordinates of the exclusion area with the context menu actions in the Exclusion areas table found in the Milling/Drilling plugins
This commit is contained in:
Marius Stanciu
2022-02-15 03:45:52 +02:00
committed by Marius
parent e0819ab1a6
commit c5b929781e
5 changed files with 63 additions and 7 deletions

View File

@@ -2246,13 +2246,14 @@ class Gerber(Geometry):
return
# variables to display the percentage of work done
self.geo_len = 0
try:
self.geo_len = len(self.solid_geometry)
except AttributeError:
if isinstance(self.solid_geometry, (MultiPolygon, MultiLineString)):
self.geo_len = len(self.solid_geometry.geoms)
except TypeError:
elif isinstance(self.solid_geometry, list):
self.geo_len = len(self.solid_geometry)
elif isinstance(self.solid_geometry, Polygon):
self.geo_len = 1
else:
self.geo_len = 0
self.old_disp_number = 0
self.el_count = 0