- in Tcl command geocutout fixed an error due of a no longer used parameter

This commit is contained in:
Marius Stanciu
2022-01-28 03:19:09 +02:00
committed by Marius
parent b003b95022
commit c48ebdea00
2 changed files with 6 additions and 2 deletions

View File

@@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta
================================================= =================================================
28.01.2022
- in Tcl command `geocutout` fixed an error due of a no longer used parameter
27.01.2022 27.01.2022
- made sure that for the Tcl command `cncjob` when using the `dpp` parameter (multi depth) the value is always positive, as expected - made sure that for the Tcl command `cncjob` when using the `dpp` parameter (multi depth) the value is always positive, as expected

View File

@@ -184,7 +184,7 @@ class TclCommandGeoCutout(TclCommandSignaled):
"[WARNING] %s" % _("Tool Diameter is zero value. Change it to a positive real number.")) "[WARNING] %s" % _("Tool Diameter is zero value. Change it to a positive real number."))
return "Tool Diameter is zero value. Change it to a positive real number." return "Tool Diameter is zero value. Change it to a positive real number."
if gaps not in ['lr', 'tb', '2lr', '2tb', '4', '8']: if gaps not in ['lr', 'tb', '2lr', '2tb', '4', '8', 4, 8]:
self.app.inform.emit( self.app.inform.emit(
"[WARNING] %s" % _("Gaps value can be only one of: 'lr', 'tb', '2lr', '2tb', 4 or 8.")) "[WARNING] %s" % _("Gaps value can be only one of: 'lr', 'tb', '2lr', '2tb', 4 or 8."))
return return
@@ -306,7 +306,7 @@ class TclCommandGeoCutout(TclCommandSignaled):
def geo_init(geo_obj, app_obj): def geo_init(geo_obj, app_obj):
try: try:
geo = cutout_obj.isolation_geometry((dia / 2), iso_type=0, corner=2, follow=None) geo = cutout_obj.isolation_geometry((dia / 2), iso_type=0, corner=2)
except Exception as exc: except Exception as exc:
log.error("TclCommandGeoCutout.execute() --> %s" % str(exc)) log.error("TclCommandGeoCutout.execute() --> %s" % str(exc))
return 'fail' return 'fail'