mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 02:16:03 +08:00
Merge branch 'master' of github.com:Ultimaker/Cura
This commit is contained in:
commit
2860512e96
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2019 fieldOfView
|
# Copyright (c) 2019 fieldOfView, Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
# This AMF parser is based on the AMF parser in legacy cura:
|
# This AMF parser is based on the AMF parser in legacy cura:
|
||||||
@ -94,7 +94,7 @@ class AMFReader(MeshReader):
|
|||||||
if t.tag == "x":
|
if t.tag == "x":
|
||||||
v[0] = float(t.text) * scale
|
v[0] = float(t.text) * scale
|
||||||
elif t.tag == "y":
|
elif t.tag == "y":
|
||||||
v[2] = float(t.text) * scale
|
v[2] = -float(t.text) * scale
|
||||||
elif t.tag == "z":
|
elif t.tag == "z":
|
||||||
v[1] = float(t.text) * scale
|
v[1] = float(t.text) * scale
|
||||||
amf_mesh_vertices.append(v)
|
amf_mesh_vertices.append(v)
|
||||||
|
@ -221,6 +221,7 @@ Item
|
|||||||
|
|
||||||
OldControls.CheckBox
|
OldControls.CheckBox
|
||||||
{
|
{
|
||||||
|
id: enabledCheckbox
|
||||||
checked: Cura.MachineManager.activeStack != null ? Cura.MachineManager.activeStack.isEnabled : false
|
checked: Cura.MachineManager.activeStack != null ? Cura.MachineManager.activeStack.isEnabled : false
|
||||||
enabled: !checked || Cura.MachineManager.numberExtrudersEnabled > 1 //Disable if it's the last enabled extruder.
|
enabled: !checked || Cura.MachineManager.numberExtrudersEnabled > 1 //Disable if it's the last enabled extruder.
|
||||||
height: parent.height
|
height: parent.height
|
||||||
@ -265,6 +266,7 @@ Item
|
|||||||
|
|
||||||
text: Cura.MachineManager.activeStack !== null ? Cura.MachineManager.activeStack.material.name : ""
|
text: Cura.MachineManager.activeStack !== null ? Cura.MachineManager.activeStack.material.name : ""
|
||||||
tooltip: text
|
tooltip: text
|
||||||
|
enabled: enabledCheckbox.checked
|
||||||
|
|
||||||
width: selectors.controlWidth
|
width: selectors.controlWidth
|
||||||
height: parent.height
|
height: parent.height
|
||||||
@ -324,7 +326,8 @@ Item
|
|||||||
height: parent.height
|
height: parent.height
|
||||||
width: selectors.controlWidth
|
width: selectors.controlWidth
|
||||||
style: UM.Theme.styles.print_setup_header_button
|
style: UM.Theme.styles.print_setup_header_button
|
||||||
activeFocusOnPress: true;
|
activeFocusOnPress: true
|
||||||
|
enabled: enabledCheckbox.checked
|
||||||
|
|
||||||
menu: Cura.NozzleMenu { extruderIndex: Cura.ExtruderManager.activeExtruderIndex }
|
menu: Cura.NozzleMenu { extruderIndex: Cura.ExtruderManager.activeExtruderIndex }
|
||||||
}
|
}
|
||||||
|
@ -50,6 +50,7 @@ Menu
|
|||||||
{
|
{
|
||||||
text: model.brand + " " + model.name
|
text: model.brand + " " + model.name
|
||||||
checkable: true
|
checkable: true
|
||||||
|
enabled: Cura.MachineManager.activeMachine.extruderList[extruderIndex].isEnabled
|
||||||
checked: model.root_material_id === menu.currentRootMaterialId
|
checked: model.root_material_id === menu.currentRootMaterialId
|
||||||
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
||||||
exclusiveGroup: favoriteGroup // One favorite and one item from the others can be active at the same time.
|
exclusiveGroup: favoriteGroup // One favorite and one item from the others can be active at the same time.
|
||||||
@ -72,6 +73,7 @@ Menu
|
|||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
checkable: true
|
checkable: true
|
||||||
|
enabled: Cura.MachineManager.activeMachine.extruderList[extruderIndex].isEnabled
|
||||||
checked: model.root_material_id === menu.currentRootMaterialId
|
checked: model.root_material_id === menu.currentRootMaterialId
|
||||||
exclusiveGroup: group
|
exclusiveGroup: group
|
||||||
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
||||||
@ -110,6 +112,7 @@ Menu
|
|||||||
{
|
{
|
||||||
text: model.name
|
text: model.name
|
||||||
checkable: true
|
checkable: true
|
||||||
|
enabled: Cura.MachineManager.activeMachine.extruderList[extruderIndex].isEnabled
|
||||||
checked: model.id === menu.activeMaterialId
|
checked: model.id === menu.activeMaterialId
|
||||||
exclusiveGroup: group
|
exclusiveGroup: group
|
||||||
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
onTriggered: Cura.MachineManager.setMaterial(extruderIndex, model.container_node)
|
||||||
|
@ -32,7 +32,7 @@ Menu
|
|||||||
return extruder.variant.name == model.hotend_name
|
return extruder.variant.name == model.hotend_name
|
||||||
}
|
}
|
||||||
exclusiveGroup: group
|
exclusiveGroup: group
|
||||||
|
enabled: Cura.MachineManager.activeMachine.extruderList[extruderIndex].isEnabled
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
Cura.MachineManager.setVariant(menu.extruderIndex, model.container_node);
|
Cura.MachineManager.setVariant(menu.extruderIndex, model.container_node);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user