Browse Source

material_amounts is now defined in init

Somehow this was forgotten, which could cause issues in certain cases.

CURA-3617
Jaime van Kessel 8 years ago
parent
commit
13561bdb46
1 changed files with 2 additions and 0 deletions
  1. 2 0
      cura/PrintInformation.py

+ 2 - 0
cura/PrintInformation.py

@@ -75,6 +75,8 @@ class PrintInformation(QObject):
         Application.getInstance().getMachineManager().activeMaterialChanged.connect(self._onActiveMaterialChanged)
         self._onActiveMaterialChanged()
 
+        self._material_amounts = []
+
     currentPrintTimeChanged = pyqtSignal()
 
     preSlicedChanged = pyqtSignal()