From c48ebdea0055a15215b365e429474bf1970c1167 Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Fri, 28 Jan 2022 03:19:09 +0200 Subject: [PATCH] - in Tcl command `geocutout` fixed an error due of a no longer used parameter --- CHANGELOG.md | 4 ++++ tclCommands/TclCommandGeoCutout.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 39bcf07e..8668fa55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 - made sure that for the Tcl command `cncjob` when using the `dpp` parameter (multi depth) the value is always positive, as expected diff --git a/tclCommands/TclCommandGeoCutout.py b/tclCommands/TclCommandGeoCutout.py index 6b9104c7..aacecd4b 100644 --- a/tclCommands/TclCommandGeoCutout.py +++ b/tclCommands/TclCommandGeoCutout.py @@ -184,7 +184,7 @@ class TclCommandGeoCutout(TclCommandSignaled): "[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." - 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( "[WARNING] %s" % _("Gaps value can be only one of: 'lr', 'tb', '2lr', '2tb', 4 or 8.")) return @@ -306,7 +306,7 @@ class TclCommandGeoCutout(TclCommandSignaled): def geo_init(geo_obj, app_obj): 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: log.error("TclCommandGeoCutout.execute() --> %s" % str(exc)) return 'fail'