mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-04 21:03:59 +08:00
Keep custom infill density value when disabling gradual infill - CURA-4397
This commit is contained in:
parent
e8925443a0
commit
30be02be14
@ -549,8 +549,11 @@ Item
|
|||||||
enabled: true
|
enabled: true
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
|
// Restore to 90% only when enabling gradual infill
|
||||||
|
if (parseInt(infillSteps.properties.value) == 0) {
|
||||||
|
infillDensity.setPropertyValue("value", 90)
|
||||||
|
}
|
||||||
infillSteps.setPropertyValue("value", (parseInt(infillSteps.properties.value) == 0) ? 5 : 0)
|
infillSteps.setPropertyValue("value", (parseInt(infillSteps.properties.value) == 0) ? 5 : 0)
|
||||||
infillDensity.setPropertyValue("value", 90)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
onEntered: {
|
onEntered: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user