- fixed a bug in the new feature 'extra buffering'

- fixed the creation of CNCJob objects out of multigeo Geometry objects (objects with multiple tools)
- optimized the NCC Tool
This commit is contained in:
Marius Stanciu
2019-12-18 17:53:41 +02:00
parent a8d4c592c2
commit 4efc453b84
5 changed files with 40 additions and 19 deletions

View File

@@ -1438,8 +1438,11 @@ class Gerber(Geometry):
# features
if self.app.defaults['gerber_extra_buffering']:
candidate_geo = list()
for p in self.solid_geometry:
candidate_geo.append(p.buffer(0.0000001))
try:
for p in self.solid_geometry:
candidate_geo.append(p.buffer(0.0000001))
except TypeError:
candidate_geo.append(self.solid_geometry.buffer(0.0000001))
self.solid_geometry = candidate_geo
# try: