mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 15:13:56 -06:00
Don't crash if mesh loading fails
Some plug-ins (like the OBJReader) return None then. Fixes Sentry issue CURA-14P.
This commit is contained in:
parent
0b22b94950
commit
8c0e21f0d5
1 changed files with 3 additions and 0 deletions
|
@ -1799,6 +1799,9 @@ class CuraApplication(QtApplication):
|
|||
return
|
||||
|
||||
nodes = job.getResult()
|
||||
if nodes is None:
|
||||
Logger.error("Read mesh job returned None. Mesh loading must have failed.")
|
||||
return
|
||||
file_name = job.getFileName()
|
||||
file_name_lower = file_name.lower()
|
||||
file_extension = file_name_lower.split(".")[-1]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue