furti / FreeCAD-Lithophane

FreeCAD Workbench to convert an image to a Lithophane for 3D Printing
MIT License
32 stars 8 forks source link

Error in "Create Solid" when no mesh is selected #25

Closed furti closed 6 years ago

furti commented 6 years ago

Describe the bug When running the "Create Solid" command with no mesh selected the following error is displayed in the console:

Running the Python command 'Make_Solid' failed:
Traceback (most recent call last):
  File "C:\Users\Daniel\AppData\Roaming\FreeCAD\Mod\FreeCAD-Lithophane\make_solid.py", line 81, in Activated
    mesh, meshLabel = lithophane_utils.findSelectedMesh()

'NoneType' object is not iterableRunning the Python command 'Make_Solid' failed:
Traceback (most recent call last):
  File "C:\Users\Daniel\AppData\Roaming\FreeCAD\Mod\FreeCAD-Lithophane\make_solid.py", line 81, in Activated
    mesh, meshLabel = lithophane_utils.findSelectedMesh()

'NoneType' object is not iterable