mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 16:53:13 +08: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
@ -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…
x
Reference in New Issue
Block a user