Use one shared chunk duration across clips
tests / test (push) Canceled after 0s
tests / windows-storage (push) Canceled after 0s

This commit is contained in:
2026-10-15 08:28:25 +00:00
parent 34e8c26b1d
commit d35b02ffbe
5 changed files with 33 additions and 9 deletions
+4 -1
View File
@@ -63,7 +63,10 @@ def normalize_sequence(value: Any, *, clip_count: int, default_seconds: float) -
raw_clip = raw_clips[clip_index] if clip_index < len(raw_clips) else {}
if not isinstance(raw_clip, Mapping):
raise ValueError(f"clip {clip_index + 1} must be an object")
duration = _number(raw_clip.get("duration", fallback_duration), f"clip {clip_index + 1} duration", minimum=0.1)
# Continuum projects use one chunk duration for every clip. Older
# editor state may still contain per-clip durations; ignore them so
# the single node control remains authoritative.
duration = fallback_duration
raw_slots = raw_clip.get("slots", [])
if not isinstance(raw_slots, list):
raise ValueError(f"clip {clip_index + 1} slots must be a list")