From 825701c73cce8baf23998fa6ee73309b66dec7af Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Sun, 7 Nov 2021 00:17:02 +0200 Subject: [PATCH] - in Cutout Plugin made sure that mouse bytes feature will not autoselect the Excellon object that is created --- CHANGELOG.md | 4 ++++ appPlugins/ToolCutOut.py | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e53b634..bde578ef 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ CHANGELOG for FlatCAM beta ================================================= +7.11.2021 + +- in Cutout Plugin made sure that mouse bytes feature will not autoselect the Excellon object that is created + 6.11.2021 - in Isolation Plugin there is no longer auto-switch to Properties Tab diff --git a/appPlugins/ToolCutOut.py b/appPlugins/ToolCutOut.py index 910749c4..d6c216d7 100644 --- a/appPlugins/ToolCutOut.py +++ b/appPlugins/ToolCutOut.py @@ -120,8 +120,9 @@ class CutOut(AppTool): if found_idx: try: - name = current.indexes()[0].internalPointer().obj.options['name'] - kind = current.indexes()[0].internalPointer().obj.kind + found_obj = current.indexes()[0].internalPointer().obj + name = found_obj.options['name'] + kind = found_obj.kind if kind in ['gerber', 'geometry']: obj_type = {'gerber': 'grb', 'geometry': 'geo'}[kind] @@ -1856,7 +1857,7 @@ class CutOut(AppTool): exc_obj.options['xmax'] = xmax exc_obj.options['ymax'] = ymax - ret = app_obj.app_obj.new_object('excellon', outname_exc, excellon_init) + ret = app_obj.app_obj.new_object('excellon', outname_exc, excellon_init, autoselected=False) if ret == 'fail': app_obj.inform.emit('[ERROR_NOTCL] %s' % _("Mouse bites failed."))