mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 04:07:57 -06:00
Register extruders with ExtruderManager
For backward compatibility
This commit is contained in:
parent
de57546020
commit
edc5b8b84e
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,7 @@ from UM.Settings.Interfaces import ContainerInterface
|
||||||
|
|
||||||
from . import Exceptions
|
from . import Exceptions
|
||||||
from .CuraContainerStack import CuraContainerStack
|
from .CuraContainerStack import CuraContainerStack
|
||||||
|
from .ExtruderManager import ExtruderManager
|
||||||
|
|
||||||
## Represents an Extruder and its related containers.
|
## Represents an Extruder and its related containers.
|
||||||
#
|
#
|
||||||
|
@ -37,6 +38,9 @@ class ExtruderStack(CuraContainerStack):
|
||||||
else:
|
else:
|
||||||
self.setMetaDataEntry("machine", stack.id)
|
self.setMetaDataEntry("machine", stack.id)
|
||||||
|
|
||||||
|
# For backward compatibility: Register the extruder with the Extruder Manager
|
||||||
|
ExtruderManager.getInstance().registerExtruder(self, stack.id)
|
||||||
|
|
||||||
## Overridden from ContainerStack
|
## Overridden from ContainerStack
|
||||||
#
|
#
|
||||||
# It will perform a few extra checks when trying to get properties.
|
# It will perform a few extra checks when trying to get properties.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue