mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-04-21 21:29:41 +08:00
Don't crash if CuraStackBuilder failed to create a stack
If it failed to create a global stack, the extruder_stack_dict variable would not be defined, and Cura crashes. It may fail to create a stack because of an indexerror in a malformed project file. Fixes Sentry issue CURA-137.
This commit is contained in:
parent
ba0efb82bc
commit
fc6ea28352
@ -758,6 +758,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
|
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
|
||||||
|
|
||||||
|
if global_stack:
|
||||||
# Handle quality changes if any
|
# Handle quality changes if any
|
||||||
self._processQualityChanges(global_stack)
|
self._processQualityChanges(global_stack)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user