Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRemco Burema <r.burema@ultimaker.com>2019-10-18 15:46:44 +0300
committerRemco Burema <r.burema@ultimaker.com>2019-10-18 15:46:44 +0300
commit25d76aee5ac19d36ce9485be019575b77dbe08ad (patch)
tree5c928e4d3fb96ff567e64df76203ab3e4a0adb7d /plugins/CuraEngineBackend
parent270cb674806acf4d9d65e0d3ddadfa24f1d65ff5 (diff)
Workaround: Make the type-checker understand what's going on.
Diffstat (limited to 'plugins/CuraEngineBackend')
-rw-r--r--plugins/CuraEngineBackend/StartSliceJob.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py
index 94f6d3edfa..29a6d8ff30 100644
--- a/plugins/CuraEngineBackend/StartSliceJob.py
+++ b/plugins/CuraEngineBackend/StartSliceJob.py
@@ -107,7 +107,8 @@ class StartSliceJob(Job):
return False
# if there are no per-object settings we don't need to check the other settings here
- if stack.getTop() is None or not stack.getTop().getAllKeys():
+ stack_top = stack.getTop()
+ if stack_top is None or not stack_top.getAllKeys():
return False
for key in stack.getAllKeys():