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(()=> {
|
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()
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue