- fixed bug in Cutout Plugin that when no object is loaded and the Generate Rectangular Geometry is clicked, the app will hard crash

This commit is contained in:
Marius Stanciu
2021-08-26 16:54:11 +03:00
parent 90584e1d37
commit c8763f9c8f
2 changed files with 2 additions and 0 deletions

View File

@@ -1132,6 +1132,7 @@ class CutOut(AppTool):
if cutout_obj is None:
self.app.inform.emit('[ERROR_NOTCL] %s: %s' % (_("Object not found"), str(name)))
return
dia = float(self.ui.dia.get_value())
if 0 in {dia}: