Prevent crashes when loading objects before initialization is done

Fixes CURA-7J
This commit is contained in:
Jaime van Kessel 2020-05-13 11:12:11 +02:00
parent 8aabf113d2
commit 384f92a516
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -1734,6 +1734,9 @@ class CuraApplication(QtApplication):
if not global_container_stack:
Logger.log("w", "Can't load meshes before a printer is added.")
return
if not self._volume:
Logger.log("w", "Can't load meshes before the build volume is initialized")
return
nodes = job.getResult()
file_name = job.getFileName()