Skip to content

Commit

Permalink
fix(cine): playclip to allow loop config (#1163)
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacharyCauchi authored Mar 20, 2024
1 parent 7e318e0 commit 1880f38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tools/src/utilities/cine/playClip.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const { ViewportStatus } = Enums;
const { triggerEvent } = csUtils;

const debounced = true;
const loop = true;
const dynamicVolumesPlayingMap = new Map();

/**
Expand Down Expand Up @@ -125,7 +124,7 @@ function playClip(
const newStepIndexOutOfRange =
newStepIndex < 0 || newStepIndex >= numScrollSteps;

if (!loop && newStepIndexOutOfRange) {
if (!playClipData.loop && newStepIndexOutOfRange) {
// If a 3D CINE was playing it passes isDynamicCinePlaying as FALSE to
// prevent stopping a 4D CINE in case it is playing on another viewport.
_stopClip(element, {
Expand Down

0 comments on commit 1880f38

Please sign in to comment.