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(()=> { setImmediate(()=> {
for (let i = 1; i < this.stitches.length; i++) { this.renderedStitch = 0
if (i < this.currentStitch) { this.renderFrame()
this.realisticPaths[i].show()
} else {
this.realisticPaths[i].hide()
}
}
this.simulation.hide() this.simulation.hide()
this.realisticPreview.show() this.realisticPreview.show()
}) })
} else { } else {
this.renderedStitch = 0
for (let i = 1; i < this.stitches.length; i++) { this.renderFrame()
if (i < this.currentStitch) {
this.stitchPaths[i].show()
} else {
this.stitchPaths[i].hide()
}
}
this.simulation.show() this.simulation.show()
this.realisticPreview.hide() this.realisticPreview.hide()
} }
if (animating) { if (animating) {
this.start() this.start()
} }