Added way to dynamicly set loading order

This is to ensure that Global stacks are loaded before extruders, so once the extruders are deseralized, they can always find the next (global) stack

CURA-3497
This commit is contained in:
Jaime van Kessel 2017-05-03 09:54:00 +02:00
parent 58ab9dcd09
commit 8d80f20db7
2 changed files with 15 additions and 0 deletions

View file

@ -40,6 +40,10 @@ class GlobalStack(CuraContainerStack):
def extruders(self) -> list:
return self._extruders
@classmethod
def getLoadingPriority(cls) -> int:
return 2
## Add an extruder to the list of extruders of this stack.
#
# \param extruder The extruder to add.