|
@@ -112,8 +112,11 @@ class ExtruderManager(QObject):
|
|
|
for extruder_train in extruder_trains:
|
|
|
self._extruder_trains[machine_id][extruder_train.getMetaDataEntry("position")] = extruder_train
|
|
|
|
|
|
- # Ensure that the extruder train stacks are linked to global stack.
|
|
|
- extruder_train.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
|
|
+ # Make sure the next stack is a stack that contains only the machine definition
|
|
|
+ if not extruder_train.getNextStack():
|
|
|
+ shallowStack = UM.Settings.ContainerStack(machine_id + "_shallow")
|
|
|
+ shallowStack.addContainer(machine_definition)
|
|
|
+ extruder_train.setNextStack(shallowStack)
|
|
|
changed = True
|
|
|
if changed:
|
|
|
self.extrudersChanged.emit(machine_id)
|
|
@@ -226,7 +229,11 @@ class ExtruderManager(QObject):
|
|
|
container_registry.addContainer(user_profile)
|
|
|
container_stack.addContainer(user_profile)
|
|
|
|
|
|
- container_stack.setNextStack(UM.Application.getInstance().getGlobalContainerStack())
|
|
|
+ # Make sure the next stack is a stack that contains only the machine definition
|
|
|
+ if not container_stack.getNextStack():
|
|
|
+ shallowStack = UM.Settings.ContainerStack(machine_id + "_shallow")
|
|
|
+ shallowStack.addContainer(machine_definition)
|
|
|
+ container_stack.setNextStack(shallowStack)
|
|
|
|
|
|
container_registry.addContainer(container_stack)
|
|
|
|