mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Fix, simulation did not play after second layer
CURA-5725
This commit is contained in:
parent
f33576cc81
commit
1b1ca8a53b
1 changed files with 14 additions and 5 deletions
|
@ -193,10 +193,14 @@ Item {
|
|||
return result
|
||||
}
|
||||
|
||||
function setValueAndStopSimulation(value)
|
||||
{
|
||||
sliderRoot.manuallyChanged = true
|
||||
upperHandle.setValue(value)
|
||||
}
|
||||
|
||||
// set the slider position based on the upper value
|
||||
function setValue(value) {
|
||||
sliderRoot.manuallyChanged = true
|
||||
|
||||
// Normalize values between range, since using arrow keys will create out-of-the-range values
|
||||
value = sliderRoot.normalizeValue(value)
|
||||
|
||||
|
@ -252,7 +256,7 @@ Item {
|
|||
maximumValue: sliderRoot.maximumValue
|
||||
value: sliderRoot.upperValue
|
||||
busy: UM.SimulationView.busy
|
||||
setValue: upperHandle.setValue // connect callback functions
|
||||
setValue: upperHandle.setValueAndStopSimulation // connect callback functions
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -292,9 +296,14 @@ Item {
|
|||
return result
|
||||
}
|
||||
|
||||
function setValueAndStopSimulation(value)
|
||||
{
|
||||
sliderRoot.manuallyChanged = true
|
||||
lowerHandle.setValue(value)
|
||||
}
|
||||
|
||||
// set the slider position based on the lower value
|
||||
function setValue(value) {
|
||||
sliderRoot.manuallyChanged = true
|
||||
|
||||
// Normalize values between range, since using arrow keys will create out-of-the-range values
|
||||
value = sliderRoot.normalizeValue(value)
|
||||
|
@ -343,7 +352,7 @@ Item {
|
|||
maximumValue: sliderRoot.maximumValue
|
||||
value: sliderRoot.lowerValue
|
||||
busy: UM.SimulationView.busy
|
||||
setValue: lowerHandle.setValue // connect callback functions
|
||||
setValue: lowerHandle.setValueAndStopSimulation // connect callback functions
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue