mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 14 additions and 13 deletions
|
@ -758,6 +758,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||
Job.yieldThread()
|
||||
QCoreApplication.processEvents() # Ensure that the GUI does not freeze.
|
||||
|
||||
if global_stack:
|
||||
# Handle quality changes if any
|
||||
self._processQualityChanges(global_stack)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue