Quality changes didn't have the right extruder ID set in some situations.

CURA-2414 Quality changes profiles are created incorrectly
This commit is contained in:
Simon Edwards 2016-09-29 20:52:15 +02:00
parent cd120c6be5
commit 8c8cd86a08
3 changed files with 13 additions and 14 deletions

View file

@ -476,7 +476,7 @@ class ContainerManager(QObject):
UM.Logger.log("w", "No quality or quality changes container found in stack %s, ignoring it", stack.getId())
continue
extruder_id = None if stack is global_stack else stack.getBottom().getId()
extruder_id = None if stack is global_stack else QualityManager.getInstance().getParentMachineDefinition(stack.getBottom()).getId()
new_changes = self._createQualityChanges(quality_container, unique_name,
UM.Application.getInstance().getGlobalContainerStack().getBottom(),
extruder_id)