diff options
author | Jaime van Kessel <nallath@gmail.com> | 2017-03-15 12:00:11 +0300 |
---|---|---|
committer | Jaime van Kessel <nallath@gmail.com> | 2017-03-15 12:00:11 +0300 |
commit | e2045b280533e32508899067ea78ee1f5a6349ed (patch) | |
tree | 53f188544686f87eb0bbdd54c06595c7bfbf1a63 /cura/PrintInformation.py | |
parent | 6cc0bd893f6746457dc60e36d00ae78d790baa9e (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.py | 3 |
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 = [] |