Skip to content

[previews] Add a command to normalize annotation times#1105

Merged
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:normalize-annotation-times
Jun 13, 2026
Merged

[previews] Add a command to normalize annotation times#1105
frankrousseau merged 1 commit into
cgwire:mainfrom
frankrousseau:normalize-annotation-times

Conversation

@frankrousseau

Copy link
Copy Markdown
Contributor

Problem

  • Older Kitsu versions stored unrounded annotation times (sometimes as strings), while current ones snap them to the frame grid, so the same logical frame can exist several times in a preview file's annotation list.
  • The player only displays the first entry matching a frame, making the other entries' drawings invisible, and grid-timed deletions or updates never match the legacy entries.

Solution

  • Add normalize_annotation_times() to merge same-frame entries (objects deduplicated by id) and snap times onto the player's frame grid, mirroring the client-side rounding.
  • Add a zou normalize-annotation-times CLI command (per-project filter, --dry-run) to clean existing preview files.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@frankrousseau frankrousseau merged commit fc9f08a into cgwire:main Jun 13, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant