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:
authorJaime van Kessel <nallath@gmail.com>2017-03-15 12:00:11 +0300
committerJaime van Kessel <nallath@gmail.com>2017-03-15 12:00:11 +0300
commite2045b280533e32508899067ea78ee1f5a6349ed (patch)
tree53f188544686f87eb0bbdd54c06595c7bfbf1a63 /cura/PrintInformation.py
parent6cc0bd893f6746457dc60e36d00ae78d790baa9e (diff)
Starting Cura when no machines added but with a model no longer causes exceptions
Diffstat (limited to 'cura/PrintInformation.py')
-rw-r--r--cura/PrintInformation.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cura/PrintInformation.py b/cura/PrintInformation.py
index 458cc4ac0f..d2476f25b6 100644
--- a/cura/PrintInformation.py
+++ b/cura/PrintInformation.py
@@ -122,6 +122,9 @@ class PrintInformation(QObject):
self._calculateInformation()
def _calculateInformation(self):
+ if Application.getInstance().getGlobalContainerStack() is None:
+ return
+
# Material amount is sent as an amount of mm^3, so calculate length from that
r = Application.getInstance().getGlobalContainerStack().getProperty("material_diameter", "value") / 2
self._material_lengths = []