diff --git a/src/kiri-mode/cam/animate.js b/src/kiri-mode/cam/animate.js index 113cc43a..0c7cda85 100644 --- a/src/kiri-mode/cam/animate.js +++ b/src/kiri-mode/cam/animate.js @@ -350,6 +350,21 @@ kiri.load(() => { stock = settings.stock; rez = 1/Math.sqrt(density/(stock.x * stock.y)); + + //destructure arcs into path points + path = path.map(o=> + o.arcPoints + ? o.arcPoints.map(point=> + ({ + ...o, + point + }) + ) + : o + ) + .flat(); + + const step = rez; const stepsX = Math.floor(stock.x / step); const stepsY = Math.floor(stock.y / step);