- added to the NonCopperClear.clear_copper() a parameter to be able to run it non-threaded

This commit is contained in:
Marius Stanciu
2019-09-14 18:27:08 +03:00
committed by Marius
parent 297d5abb48
commit 57f4762261
5 changed files with 30 additions and 18 deletions

View File

@@ -111,5 +111,7 @@ class TclCommandCncjob(TclCommandSignaled):
# HACK !!! Should be solved elsewhere!!!
# default option for multidepth is False
obj.options['multidepth'] = False
obj.generatecncjob(use_thread=False, **args)
if not obj.multigeo:
obj.generatecncjob(use_thread=False, **args)
else:
self.raise_tcl_error('The object is a multi-geo geometry which is not supported in cncjob Tcl Command')

View File

@@ -225,7 +225,8 @@ class TclCommandCopperClear(TclCommand):
connect=connect,
contour=contour,
rest=rest,
tools_storage=ncc_tools)
tools_storage=ncc_tools,
run_threaded=False)
return
# Non-Copper clear all polygons found within the box object from the the non_copper cleared object
@@ -257,7 +258,8 @@ class TclCommandCopperClear(TclCommand):
connect=connect,
contour=contour,
rest=rest,
tools_storage=ncc_tools)
tools_storage=ncc_tools,
run_threaded=False)
return
else:
self.raise_tcl_error("%s:" % _("None of the following args: 'ref', 'all' were found or none was set to 1.\n"