From 6dbdee8d981f0e907a1cfd4e997e8961629650e6 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 4 Sep 2020 16:43:53 +0200 Subject: [PATCH] Don't switch away from disabled extruder In some situations this could cause a slowdown, since halfway through calculating the values the extruder switch would happen. If this is split up a bit, it's at least less noticeable Contributes to #8250 --- cura/Settings/MachineManager.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/cura/Settings/MachineManager.py b/cura/Settings/MachineManager.py index 3293b77103..8552feb4d8 100755 --- a/cura/Settings/MachineManager.py +++ b/cura/Settings/MachineManager.py @@ -984,10 +984,6 @@ class MachineManager(QObject): self.updateNumberExtrudersEnabled() self.correctExtruderSettings() - # In case this extruder is being disabled and it's the currently selected one, switch to the default extruder - if not enabled and position == ExtruderManager.getInstance().activeExtruderIndex: - ExtruderManager.getInstance().setActiveExtruderIndex(int(self._default_extruder_position)) - # Ensure that the quality profile is compatible with current combination, or choose a compatible one if available self._updateQualityWithMaterial() self.extruderChanged.emit() @@ -995,7 +991,7 @@ class MachineManager(QObject): self.activeQualityGroupChanged.emit() # Update items in SettingExtruder ExtruderManager.getInstance().extrudersChanged.emit(self._global_container_stack.getId()) - + # Also trigger the build plate compatibility to update self.activeMaterialChanged.emit() self.activeIntentChanged.emit()