- Cutout Tool - fixed generation of rectangular geometry if the selected gaps is "None"

This commit is contained in:
Marius Stanciu
2020-11-21 21:04:08 +02:00
committed by Marius Stanciu
parent 66933ae172
commit ad5ae43ab4
2 changed files with 11 additions and 2 deletions

View File

@@ -840,7 +840,11 @@ class CutOut(AppTool):
self.app.inform.emit('[ERROR_NOTCL] %s' % _("Failed."))
return "fail"
solid_geo = linemerge(solid_geo)
try:
solid_geo = linemerge(solid_geo)
except Exception:
# there ar enot lines but polygons
pass
if has_mouse_bites is True:
gapsize -= dia / 2
@@ -1190,7 +1194,11 @@ class CutOut(AppTool):
app_obj.inform.emit('[ERROR_NOTCL] %s' % _("Failed."))
return "fail"
solid_geo = linemerge(solid_geo)
try:
solid_geo = linemerge(solid_geo)
except Exception:
# there are not lines but polygon
pass
if has_mouse_bites is True:
gapsize -= dia / 2