mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 16:43:14 +08:00
Register extruders with ExtruderManager
For backward compatibility
This commit is contained in:
parent
de57546020
commit
edc5b8b84e
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user