From edc5b8b84e8f13f0760488f82748ec2339f9f8ed Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Tue, 18 Apr 2017 17:38:09 +0200 Subject: [PATCH] Register extruders with ExtruderManager For backward compatibility --- cura/Settings/ExtruderStack.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/Settings/ExtruderStack.py b/cura/Settings/ExtruderStack.py index a85140065e..2a481863e1 100644 --- a/cura/Settings/ExtruderStack.py +++ b/cura/Settings/ExtruderStack.py @@ -15,6 +15,7 @@ from UM.Settings.Interfaces import ContainerInterface from . import Exceptions from .CuraContainerStack import CuraContainerStack +from .ExtruderManager import ExtruderManager ## Represents an Extruder and its related containers. # @@ -37,6 +38,9 @@ class ExtruderStack(CuraContainerStack): else: self.setMetaDataEntry("machine", stack.id) + # For backward compatibility: Register the extruder with the Extruder Manager + ExtruderManager.getInstance().registerExtruder(self, stack.id) + ## Overridden from ContainerStack # # It will perform a few extra checks when trying to get properties.