Skip to content

Commit

Permalink
Fix export code for boot case
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeicor committed Dec 1, 2023
1 parent 70e3982 commit fc6dfc7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@
print("Cannot show model, exporting to STL instead (%s)" % ex)

if export:
obj.part.export_stl('boot-protector.stl')
if hasattr(obj, 'part'):
obj.part.export_stl('boot-protector.stl')
else:
export_stl(obj, 'boot-protector.stl')

0 comments on commit fc6dfc7

Please sign in to comment.