From 72945bcda8d2d93adfccbf4d2834acd4bf64fe7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Niem=C3=B6ller?= Date: Sat, 7 Nov 2020 23:12:29 +0100 Subject: [PATCH] Bugfix for NCC on gerber with gerber as reference --- appTools/ToolNCC.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/appTools/ToolNCC.py b/appTools/ToolNCC.py index 7da7938e..5168ace7 100644 --- a/appTools/ToolNCC.py +++ b/appTools/ToolNCC.py @@ -2869,7 +2869,7 @@ class NonCopperClear(AppTool, Gerber): bounding_box = unary_union(geo_buff_list) elif ncc_sel_obj.kind == 'gerber': geo_n = unary_union(geo_n).convex_hull - bounding_box = unary_union(self.ncc_obj.solid_geometry).convex_hull.intersection(geo_n) + bounding_box = unary_union(ncc_sel_obj.solid_geometry).convex_hull.intersection(geo_n) bounding_box = bounding_box.buffer(distance=ncc_margin, join_style=base.JOIN_STYLE.mitre) else: self.app.inform.emit('[ERROR_NOTCL] %s' % _("The reference object type is not supported.")) @@ -3315,7 +3315,7 @@ class NonCopperClear(AppTool, Gerber): rest_geo = [] current_uid = 1 try: - tool = eval(self.app.defaults["tools_ncc_tools"])[0] + tool = eval(str(self.app.defaults["tools_ncc_tools"]))[0] except TypeError: tool = eval(self.app.defaults["tools_ncc_tools"])