Use per-object stack instead of the active extruder

CURA-4186
This commit is contained in:
Lipu Fei 2017-08-23 12:31:20 +02:00
parent 32a863d9dc
commit 7a2493dd2f

View file

@ -179,10 +179,10 @@ Item {
//We have limit_to_extruder, so pick that stack. //We have limit_to_extruder, so pick that stack.
return ExtruderManager.extruderIds[String(inheritStackProvider.properties.limit_to_extruder)]; return ExtruderManager.extruderIds[String(inheritStackProvider.properties.limit_to_extruder)];
} }
if(ExtruderManager.activeExtruderStackId) if(UM.ActiveTool.properties.getValue("ContainerID"))
{ {
//We're on an extruder tab. Pick the current extruder. //We're on an extruder tab. Pick the current extruder.
return ExtruderManager.activeExtruderStackId; return UM.ActiveTool.properties.getValue("ContainerID");
} }
//No extruder tab is selected. Pick the global stack. Shouldn't happen any more since we removed the global tab. //No extruder tab is selected. Pick the global stack. Shouldn't happen any more since we removed the global tab.
return activeMachineId; return activeMachineId;