-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix asymmetrical 9-slicing #14148
Merged
Merged
fix asymmetrical 9-slicing #14148
Conversation
This file contains 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
alice-i-cecile
added
C-Bug
An unexpected or incorrect behavior
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
labels
Jul 7, 2024
alice-i-cecile
added
the
S-Needs-Review
Needs reviewer attention (from anyone!) to move forward
label
Jul 7, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The fix looks good to me, but I'm not keen on how fragile this code is. Can you devise some tests for this module, including a regression test?
alice-i-cecile
added
S-Waiting-on-Author
The author needs to make changes or address concerns before this can be merged
and removed
S-Needs-Review
Needs reviewer attention (from anyone!) to move forward
labels
Jul 7, 2024
I believe the tests introduced in #13921 adequately cover this. Let me know if they don't and I'll write more extensive tests. |
alice-i-cecile
approved these changes
Jul 7, 2024
alice-i-cecile
added
S-Needs-Review
Needs reviewer attention (from anyone!) to move forward
and removed
S-Waiting-on-Author
The author needs to make changes or address concerns before this can be merged
labels
Jul 7, 2024
alice-i-cecile
added
the
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
label
Jul 29, 2024
TrialDragon
approved these changes
Aug 1, 2024
TrialDragon
added
S-Ready-For-Final-Review
This PR has been approved by the community. It's ready for a maintainer to consider merging it
and removed
S-Needs-Review
Needs reviewer attention (from anyone!) to move forward
labels
Aug 1, 2024
mockersf
pushed a commit
that referenced
this pull request
Aug 2, 2024
# Objective Fixes #14147. ## Solution Modify the slicing checks and algorithm to fully allow asymmetrical textures to work. Some opinionated code cleanup. ## Testing Tested using the ui_texture_slice example and a custom asymmetrical texture. Before: ![asymmetrical_texture_slice_before](https://github.com/bevyengine/bevy/assets/88861660/00dafce1-904a-41ac-b5d9-faaf087b0681) After: ![asymmetrical_texture_slice_after](https://github.com/bevyengine/bevy/assets/88861660/f3d742f3-6157-4d35-b383-aee4b8f6e7d0) --------- Co-authored-by: Alice Cecile <alice.i.cecile@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
D-Straightforward
Simple bug fixes and API improvements, docs, test and examples
S-Ready-For-Final-Review
This PR has been approved by the community. It's ready for a maintainer to consider merging it
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.
Objective
Fixes #14147.
Solution
Modify the slicing checks and algorithm to fully allow asymmetrical textures to work.
Some opinionated code cleanup.
Testing
Tested using the ui_texture_slice example and a custom asymmetrical texture.
Before:
After: