Fix extruder_stacks.items()

This commit is contained in:
Lipu Fei 2018-03-02 16:20:03 +01:00
parent d372fc75e7
commit f7377e6321

View file

@ -212,7 +212,7 @@ class PrintInformation(QObject):
material_preference_values = json.loads(Preferences.getInstance().getValue("cura/material_settings"))
extruder_stacks = global_stack.extruders
for position, extruder_stack in extruder_stacks.keys():
for position, extruder_stack in extruder_stacks.items():
index = int(position)
if index >= len(self._material_amounts):
continue