Register extruders with ExtruderManager

For backward compatibility
This commit is contained in:
Arjen Hiemstra 2017-04-18 17:38:09 +02:00
parent de57546020
commit edc5b8b84e

View file

@ -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.