From e2045b280533e32508899067ea78ee1f5a6349ed Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 15 Mar 2017 10:00:11 +0100 Subject: [PATCH] Starting Cura when no machines added but with a model no longer causes exceptions --- cura/PrintInformation.py | 3 +++ 1 file changed, 3 insertions(+) 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 = []