Skip to content

Commit

Permalink
Revert "Unwind loop commands up to loop count instead of total iterat…
Browse files Browse the repository at this point in the history
…ions"

This reverts commit a2bf29d.
  • Loading branch information
kionell committed Aug 19, 2022
1 parent 14558b7 commit 4b851ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Storyboards/Commands/CommandLoop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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++) {
Expand Down

0 comments on commit 4b851ca

Please sign in to comment.