mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-09 14:55:03 -06:00
CURA-4461 Set active buildplate in the global container stack when is
changed in the UI. Add a new setting for distinguish between types of build plates.
This commit is contained in:
parent
fd46f6968b
commit
cea9f359cd
3 changed files with 55 additions and 3 deletions
|
@ -154,6 +154,21 @@
|
|||
"settable_per_extruder": false,
|
||||
"settable_per_meshgroup": false
|
||||
},
|
||||
"machine_buildplate_type":
|
||||
{
|
||||
"label": "Build Plate Material",
|
||||
"description": "The material of the build plate installed on the printer.",
|
||||
"default_value": "glass",
|
||||
"type": "enum",
|
||||
"options":
|
||||
{
|
||||
"glass": "Glass",
|
||||
"aluminium": "Aluminium"
|
||||
},
|
||||
"settable_per_mesh": false,
|
||||
"settable_per_extruder": false,
|
||||
"settable_per_meshgroup": false
|
||||
},
|
||||
"machine_height":
|
||||
{
|
||||
"label": "Machine Height",
|
||||
|
|
|
@ -12,6 +12,7 @@ Menu
|
|||
id: menu
|
||||
title: "Build plate"
|
||||
|
||||
property int extruderIndex: 0
|
||||
property bool printerConnected: Cura.MachineManager.printerOutputDevices.length != 0
|
||||
property bool isClusterPrinter:
|
||||
{
|
||||
|
@ -72,10 +73,12 @@ Menu
|
|||
MenuItem {
|
||||
text: model.name
|
||||
checkable: true
|
||||
// checked: model.id == Cura.MachineManager.buildplateIds[buildplateIndex]
|
||||
checked: model.id == Cura.MachineManager.globalVariantId
|
||||
exclusiveGroup: group
|
||||
onTriggered:
|
||||
{
|
||||
print("Cura.MachineManager.activeDefinitionId", Cura.MachineManager.activeDefinitionId)
|
||||
print("Cura.MachineManager.allActiveVariantIds[Cura.MachineManager.activeDefinitionId]", JSON.stringify(Cura.MachineManager.globalVariantId))
|
||||
Cura.MachineManager.setActiveVariantBuildplate(model.id);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue