- Copper Fill Tool: added GUI category in Edit -> Preferences window

- QRCode Tool: added a selection limit parameter to control the selection shape vs utility geo
This commit is contained in:
Marius Stanciu
2019-10-26 00:08:50 +03:00
committed by Marius
parent 4a3a0a5669
commit d1f40c769f
6 changed files with 138 additions and 14 deletions

View File

@@ -562,8 +562,8 @@ class QRCode(FlatCAMTool):
offset_geo = list()
# I use the len of self.qrcode_geometry instead of the utility one because the complexity of the polygons is
# better seen in this
if len(self.qrcode_geometry) <= 330:
# better seen in this (bit what if the sel.qrcode_geometry is just one geo element? len will fail ...
if len(self.qrcode_geometry) <= self.app.defaults["tools_qrcode_sel_limit"]:
try:
for poly in self.qrcode_utility_geometry:
offset_geo.append(translate(poly.exterior, xoff=pos[0], yoff=pos[1]))