diff --git a/electron/src/renderer/assets/js/simulator.js b/electron/src/renderer/assets/js/simulator.js index e751f137c..26ad442e7 100644 --- a/electron/src/renderer/assets/js/simulator.js +++ b/electron/src/renderer/assets/js/simulator.js @@ -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() }