- done regression to solve the bug with multiple passes cutting from the copper features (I should remember not to make mods here)

- if 'combine' is checked in Gerber isolation but there is only one pass, the resulting geometry will still be single geo
- the 'passes' entry was changed to a IntSpinner so it will allow passes to be entered only in range (1, 999) - it will not allow entry of 0 which may create some issues
This commit is contained in:
Marius Stanciu
2019-08-12 00:28:46 +03:00
parent 0e52ef6356
commit fd104eee55
5 changed files with 27 additions and 18 deletions

View File

@@ -983,7 +983,12 @@ class FlatCAMGerber(FlatCAMObj, Gerber):
if empty_cnt == len(geo_obj.solid_geometry):
raise ValidationError("Empty Geometry", None)
geo_obj.multigeo = True
# even if combine is checked, one pass is still singlegeo
if passes > 1:
geo_obj.multigeo = True
else:
geo_obj.multigeo = False
# TODO: Do something if this is None. Offer changing name?
self.app.new_object("geometry", iso_name, iso_init)