mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 16:39:00 +08:00
Fix, simulation did not play after second layer
CURA-5725
This commit is contained in:
parent
f33576cc81
commit
1b1ca8a53b
@ -193,10 +193,14 @@ Item {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setValueAndStopSimulation(value)
|
||||||
|
{
|
||||||
|
sliderRoot.manuallyChanged = true
|
||||||
|
upperHandle.setValue(value)
|
||||||
|
}
|
||||||
|
|
||||||
// set the slider position based on the upper value
|
// set the slider position based on the upper value
|
||||||
function setValue(value) {
|
function setValue(value) {
|
||||||
sliderRoot.manuallyChanged = true
|
|
||||||
|
|
||||||
// Normalize values between range, since using arrow keys will create out-of-the-range values
|
// Normalize values between range, since using arrow keys will create out-of-the-range values
|
||||||
value = sliderRoot.normalizeValue(value)
|
value = sliderRoot.normalizeValue(value)
|
||||||
|
|
||||||
@ -252,7 +256,7 @@ Item {
|
|||||||
maximumValue: sliderRoot.maximumValue
|
maximumValue: sliderRoot.maximumValue
|
||||||
value: sliderRoot.upperValue
|
value: sliderRoot.upperValue
|
||||||
busy: UM.SimulationView.busy
|
busy: UM.SimulationView.busy
|
||||||
setValue: upperHandle.setValue // connect callback functions
|
setValue: upperHandle.setValueAndStopSimulation // connect callback functions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -292,9 +296,14 @@ Item {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function setValueAndStopSimulation(value)
|
||||||
|
{
|
||||||
|
sliderRoot.manuallyChanged = true
|
||||||
|
lowerHandle.setValue(value)
|
||||||
|
}
|
||||||
|
|
||||||
// set the slider position based on the lower value
|
// set the slider position based on the lower value
|
||||||
function setValue(value) {
|
function setValue(value) {
|
||||||
sliderRoot.manuallyChanged = true
|
|
||||||
|
|
||||||
// Normalize values between range, since using arrow keys will create out-of-the-range values
|
// Normalize values between range, since using arrow keys will create out-of-the-range values
|
||||||
value = sliderRoot.normalizeValue(value)
|
value = sliderRoot.normalizeValue(value)
|
||||||
@ -343,7 +352,7 @@ Item {
|
|||||||
maximumValue: sliderRoot.maximumValue
|
maximumValue: sliderRoot.maximumValue
|
||||||
value: sliderRoot.lowerValue
|
value: sliderRoot.lowerValue
|
||||||
busy: UM.SimulationView.busy
|
busy: UM.SimulationView.busy
|
||||||
setValue: lowerHandle.setValue // connect callback functions
|
setValue: lowerHandle.setValueAndStopSimulation // connect callback functions
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user