Use one shared chunk duration across clips
This commit is contained in:
+4
-1
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user