Skip to content

Ensure spatially backwards formatting does not crash playback#278

Merged
jaredjj3 merged 6 commits intomasterfrom
playback
Apr 9, 2025
Merged

Ensure spatially backwards formatting does not crash playback#278
jaredjj3 merged 6 commits intomasterfrom
playback

Conversation

@jaredjj3
Copy link
Collaborator

@jaredjj3 jaredjj3 commented Apr 9, 2025

This PR fixes #276. It will be available in ^0.1.6

The key thing that fixed this bug was changing TimelineMoment rounding from the nearest 100ms to the nearest 1ms. Before this PR, rounding caused certain elements to be grouped incorrectly.

I also added a guard to ensure that CursorFrame x ranges are valid. Instead, a warning will be logged for exceptional cases.

The snippet below is from #207 (comment). I was able to playback the entire document without any issues. The snippet is what the new unit tests are based on.

demo.mov

@jaredjj3 jaredjj3 self-assigned this Apr 9, 2025
@jaredjj3 jaredjj3 merged commit d5772e0 into master Apr 9, 2025
1 check passed
@jaredjj3 jaredjj3 deleted the playback branch April 9, 2025 11:25
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.

Cursor active notes

1 participant