Skip to content

Refactor section_buffer from tuple to named struct#23398

Merged
alice-i-cecile merged 3 commits intobevyengine:mainfrom
gregcsokas:refactor-section_buffer
Mar 18, 2026
Merged

Refactor section_buffer from tuple to named struct#23398
alice-i-cecile merged 3 commits intobevyengine:mainfrom
gregcsokas:refactor-section_buffer

Conversation

@gregcsokas
Copy link
Copy Markdown
Contributor

Fixes #23396

Please merge it after #23380

@kfc35 kfc35 added S-Blocked This cannot move forward until something else changes A-Text Rendering and layout for characters D-Straightforward Simple bug fixes and API improvements, docs, test and examples C-Refinement Improves output quality, without fixing a clear bug or adding new functionality. labels Mar 17, 2026
@alice-i-cecile alice-i-cecile added X-Uncontroversial This work is generally agreed upon C-Code-Quality A section of code that is hard to understand or change and removed C-Refinement Improves output quality, without fixing a clear bug or adding new functionality. labels Mar 18, 2026
@kfc35 kfc35 added the S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged label Mar 18, 2026
@kfc35
Copy link
Copy Markdown
Contributor

kfc35 commented Mar 18, 2026

Now that #23380 has been merged, I think this needs a merge from main @gregcsokas

@kfc35 kfc35 removed the S-Blocked This cannot move forward until something else changes label Mar 18, 2026
…ability and maintainability

# Conflicts:
#	crates/bevy_text/src/pipeline.rs
@gregcsokas gregcsokas force-pushed the refactor-section_buffer branch from 02a611c to d3b7d0a Compare March 18, 2026 07:55
@gregcsokas
Copy link
Copy Markdown
Contributor Author

Hey @kfc35 I fixed the mess

@gregcsokas gregcsokas requested a review from kfc35 March 18, 2026 10:35
@kfc35 kfc35 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 Mar 18, 2026
Copy link
Copy Markdown
Contributor

@kfc35 kfc35 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving with the assumption that the duplicate lines are removed

}

self.text_buffer.clear();
for (_, span, _, _, _, _) in &sections {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So much better.

@alice-i-cecile alice-i-cecile 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 Mar 18, 2026
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Mar 18, 2026
Merged via the queue into bevyengine:main with commit e9878a5 Mar 18, 2026
40 checks passed
splo pushed a commit to splo/bevy that referenced this pull request Mar 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Code-Quality A section of code that is hard to understand or change 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 X-Uncontroversial This work is generally agreed upon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor sections_buffer from tuple to named struct

3 participants