Fixed issue with first startup

This commit is contained in:
Jaime van Kessel 2016-12-12 11:00:19 +01:00
parent 8fdc0a40ce
commit 0229fd8676

View file

@ -490,6 +490,7 @@ class MachineManager(QObject):
@pyqtProperty("QVariantList", notify = activeMaterialChanged)
def activeMaterialNames(self):
result = []
if ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks() is not None:
for stack in ExtruderManager.getInstance().getActiveGlobalAndExtruderStacks():
material_container = stack.findContainer(type="material")
if material_container and material_container != self._empty_material_container: