Repository navigation
Cap text animator range selector Start, End and Offset (#908) - #926
Merged
Merged
Conversation
MarekSpodBiedry
marked this pull request as ready for review
October 11, 2026 21:46
h-a-n-a-s-h-i
pushed a commit
that referenced
this pull request
Oct 12, 2026
- Footage sources: the cancellable wrapper (#784) forwards frame_with (#752 float curves) and problem (#887); problem's default lives on the trait. - Media: a called-off decode (#784) is not a footage problem (#887). - Effect Controls rename (#953): Escape cancels (egui drops focus on Escape the same frame), the Rename item is translated; regression test. - i18n (#873): drop the /out-i18n/ ignore rule and the note about an uncommitted script. - Tests: text range selector caps (#926) re-borrow the layer; the RAM preview test (#793) sets the comp's own Resolution (#462). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
Merged. Thank you for the contribution, @MarekSpodBiedry! Small follow-up: the new test needed to re-borrow the layer after reading the project; fixed on main. If you haven't already, come join us on Discord: https://discord.gg/artcraft. It's the best place to discuss what you're working on next and to coordinate with other contributors. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #908.
The Range Selector's Start and End were used as typed, so values like End 300% or Start -200% stretched the selection past the text. Offset was not limited either.
range_paramsincrates/render/src/text.rsnow limits them when the selector is evaluated:The limit is applied where the selector is evaluated, so it covers every way a value gets there: typed values, keyframes, expressions, scripts and Lottie import. The stored value is not changed.
Test:
range_start_end_and_offset_are_cappedincrates/render/src/text/tests.rs. It sets End 300% with Offset -150%, then Start -200% with Offset 100%. With the limit nothing is selected. Without it every character is selected. (Once Start and End are within 0..100%, an Offset beyond ±100% already moves the range past every character, so limiting Offset makes no visible difference and the test cannot show it on its own.)