Use globalContainer stack instead of activeInstance

CURA-1278
This commit is contained in:
Jaime van Kessel 2016-05-10 11:40:36 +02:00
parent 93227c0b56
commit 170df747b3
2 changed files with 1 additions and 3 deletions

View file

@ -63,6 +63,6 @@ class PrintInformation(QObject):
self.currentPrintTimeChanged.emit()
# Material amount is sent as an amount of mm^3, so calculate length from that
r = Application.getInstance().getMachineManager().getWorkingProfile().getSettingValue("material_diameter") / 2
r = Application.getInstance().getGlobalContainerStack().getValue("material_diameter") / 2
self._material_amount = round((amount / (math.pi * r ** 2)) / 1000, 2)
self.materialAmountChanged.emit()