kopia lustrzana https://github.com/inkstitch/inkstitch
Fixed jumps rendering when toggling on realistic preview with jump rendering disabled. (#2835)
Fixes issue #2751pull/2854/head dev-build-kaalleen-param-default-none
rodzic
8fe9f7506e
commit
dd85f23bdb
|
@ -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()
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue