From 3fbdaf6c17faa1539292bb03ff8ca5db57cc75de Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 8 May 2017 13:43:09 +0200 Subject: [PATCH] Ignore values of extruders that are inactive for the current machine instance extrudervalues() would include the values of extruders whose position >= machine_extruder_count. This can happen in machine definitions that have more extruders than machine_extruder_count, eg Custom FDM printer. --- cura/Settings/ExtruderManager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/Settings/ExtruderManager.py b/cura/Settings/ExtruderManager.py index 0f649e5860..359cd74f09 100755 --- a/cura/Settings/ExtruderManager.py +++ b/cura/Settings/ExtruderManager.py @@ -520,6 +520,10 @@ class ExtruderManager(QObject): result = [] for extruder in ExtruderManager.getInstance().getMachineExtruders(global_stack.getId()): + # only include values from extruders that are "active" for the current machine instance + if int(extruder.getMetaDataEntry("position")) >= global_stack.getProperty("machine_extruder_count", "value"): + continue + value = extruder.getRawProperty(key, "value") if value is None: