mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-15 18:25:54 +08:00
Starting Cura when no machines added but with a model no longer causes exceptions
This commit is contained in:
parent
7b4375e3d1
commit
b5c6ca0973
@ -124,6 +124,9 @@ class PrintInformation(QObject):
|
|||||||
self._calculateInformation()
|
self._calculateInformation()
|
||||||
|
|
||||||
def _calculateInformation(self):
|
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
|
# Material amount is sent as an amount of mm^3, so calculate length from that
|
||||||
radius = Application.getInstance().getGlobalContainerStack().getProperty("material_diameter", "value") / 2
|
radius = Application.getInstance().getGlobalContainerStack().getProperty("material_diameter", "value") / 2
|
||||||
self._material_lengths = []
|
self._material_lengths = []
|
||||||
|
Loading…
x
Reference in New Issue
Block a user