Fixed jumps rendering when toggling on realistic preview with jump rendering disabled. (#2835)

Fixes issue #2751
pull/2854/head dev-build-kaalleen-param-default-none
capellancitizen 2024-04-11 01:32:32 -04:00 zatwierdzone przez GitHub
rodzic 8fe9f7506e
commit dd85f23bdb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B5690EEEBB952194
1 zmienionych plików z 5 dodań i 16 usunięć

Wyświetl plik

@ -95,32 +95,21 @@ export default {
}
setImmediate(()=> {
for (let i = 1; i < this.stitches.length; i++) {
if (i < this.currentStitch) {
this.realisticPaths[i].show()
} else {
this.realisticPaths[i].hide()
}
}
this.renderedStitch = 0
this.renderFrame()
this.simulation.hide()
this.realisticPreview.show()
})
} else {
for (let i = 1; i < this.stitches.length; i++) {
if (i < this.currentStitch) {
this.stitchPaths[i].show()
} else {
this.stitchPaths[i].hide()
}
}
this.renderedStitch = 0
this.renderFrame()
this.simulation.show()
this.realisticPreview.hide()
}
if (animating) {
this.start()
}