From 0ff9d72c4c3bba930dc7f6eac243a981cbc3e641 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 13 Sep 2019 14:11:55 +0200 Subject: Remove use of deprecated extruders property --- cura/UI/PrintInformation.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'cura/UI') diff --git a/cura/UI/PrintInformation.py b/cura/UI/PrintInformation.py index 3fafaaba12..abf1083836 100644 --- a/cura/UI/PrintInformation.py +++ b/cura/UI/PrintInformation.py @@ -197,11 +197,7 @@ class PrintInformation(QObject): material_preference_values = json.loads(self._application.getInstance().getPreferences().getValue("cura/material_settings")) - extruder_stacks = global_stack.extruders - - for position in extruder_stacks: - extruder_stack = extruder_stacks[position] - index = int(position) + for index, extruder_stack in enumerate(global_stack.extruderList): if index >= len(self._material_amounts): continue amount = self._material_amounts[index] -- cgit v1.2.3