From b5c6ca097392d70579ca03186c885ee9551182f2 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 0369f536fa..1eb7aaa7dd 100644 --- a/cura/PrintInformation.py +++ b/cura/PrintInformation.py @@ -124,6 +124,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 radius = Application.getInstance().getGlobalContainerStack().getProperty("material_diameter", "value") / 2 self._material_lengths = []