mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 14:34:01 -06:00
Starting Cura when no machines added but with a model no longer causes exceptions
This commit is contained in:
parent
6cc0bd893f
commit
e2045b2805
1 changed files with 3 additions and 0 deletions
|
@ -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 = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue