- finished the work on file extensions registration with FlatCAM. If the file extensions are deleted in the Preferences -> File Associations then those extensions are unregistered with FlatCAM
- fixed bug in NCC Tools and in SolderPaste Tool if in Edit -> Preferences only one tool is entered
This commit is contained in:
@@ -1488,7 +1488,10 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
# Generate area for each tool
|
||||
offset = sum(sorted_tools)
|
||||
current_uid = int(1)
|
||||
tool = eval(self.app.defaults["tools_ncctools"])[0]
|
||||
try:
|
||||
tool = eval(self.app.defaults["tools_ncctools"])[0]
|
||||
except TypeError:
|
||||
tool = eval(self.app.defaults["tools_ncctools"])
|
||||
|
||||
# ###################################################################################################
|
||||
# Calculate the empty area by subtracting the solid_geometry from the object bounding box geometry ##
|
||||
@@ -1715,7 +1718,10 @@ class NonCopperClear(FlatCAMTool, Gerber):
|
||||
cleared_by_last_tool = []
|
||||
rest_geo = []
|
||||
current_uid = 1
|
||||
tool = eval(self.app.defaults["tools_ncctools"])[0]
|
||||
try:
|
||||
tool = eval(self.app.defaults["tools_ncctools"])[0]
|
||||
except TypeError:
|
||||
tool = eval(self.app.defaults["tools_ncctools"])
|
||||
|
||||
# repurposed flag for final object, geo_obj. True if it has any solid_geometry, False if not.
|
||||
app_obj.poly_not_cleared = True
|
||||
|
||||
Reference in New Issue
Block a user