- when adding an aperture with code '0' (zero) it will automatically be set with size zero and type: 'REG' (from region); here we store all the regions from a Gerber file, the ones without a declared aperture
This commit is contained in:
@@ -20,6 +20,7 @@ CAD program, and create G-Code for Isolation routing.
|
||||
- Gerber Editor: added shortcut for Transform Tool and also toggle effect here, too
|
||||
- updated the shortcut list with the Gerber Editor shortcut keys
|
||||
- Gerber Editor: fixed error when adding an aperture with code value lower than the ones that already exists
|
||||
- when adding an aperture with code '0' (zero) it will automatically be set with size zero and type: 'REG' (from region); here we store all the regions from a Gerber file, the ones without a declared aperture
|
||||
|
||||
11.04.2019
|
||||
|
||||
|
||||
@@ -1541,6 +1541,21 @@ class FlatCAMGrbEditor(QtCore.QObject):
|
||||
"Add it and retry."))
|
||||
return
|
||||
|
||||
if ap_id == '0':
|
||||
if ap_id not in self.olddia_newdia:
|
||||
self.storage_dict[ap_id] = {}
|
||||
self.storage_dict[ap_id]['type'] = 'REG'
|
||||
size_val = 0
|
||||
self.apsize_entry.set_value(size_val)
|
||||
self.storage_dict[ap_id]['size'] = size_val
|
||||
|
||||
self.storage_dict[ap_id]['solid_geometry'] = []
|
||||
self.storage_dict[ap_id]['follow_geometry'] = []
|
||||
|
||||
# self.olddia_newdia dict keeps the evidence on current aperture codes as keys and gets updated on values
|
||||
# each time a aperture code is edited or added
|
||||
self.olddia_newdia[ap_id] = ap_id
|
||||
else:
|
||||
if ap_id not in self.olddia_newdia:
|
||||
self.storage_dict[ap_id] = {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user