From 4b851ca95e5bcf5badb668073d0f6319f705f347 Mon Sep 17 00:00:00 2001 From: kionell Date: Fri, 19 Aug 2022 11:36:11 +0300 Subject: [PATCH] Revert "Unwind loop commands up to loop count instead of total iterations" This reverts commit a2bf29d53c822385812de2451b1dd01ad5d45f51. --- src/Storyboards/Commands/CommandLoop.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Storyboards/Commands/CommandLoop.ts b/src/Storyboards/Commands/CommandLoop.ts index 467b22f..e743c98 100644 --- a/src/Storyboards/Commands/CommandLoop.ts +++ b/src/Storyboards/Commands/CommandLoop.ts @@ -59,11 +59,11 @@ export class CommandLoop extends CommandTimelineGroup { if (commands.length === 0) return []; - const { commandsDuration, loopCount, loopStartTime } = this; + const { commandsDuration, totalIterations, loopStartTime } = this; - const unrolledCommands = new Array(loopCount * commands.length); + const unrolledCommands = new Array(totalIterations * commands.length); - for (let i = 0; i < loopCount; i++) { + for (let i = 0; i < totalIterations; i++) { const iterationStartTime = loopStartTime + i * commandsDuration; for (let j = 0; j < commands.length; j++) {