Browse Source

Use per-object stack instead of the active extruder

CURA-4186
Lipu Fei 7 years ago
parent
commit
7a2493dd2f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml

+ 2 - 2
plugins/PerObjectSettingsTool/PerObjectSettingsPanel.qml

@@ -179,10 +179,10 @@ Item {
                                     //We have limit_to_extruder, so pick that stack.
                                     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.
-                                    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.
                                 return activeMachineId;