Skip to content

Commit 941b781

Browse files
authored
fix: skip text when SkipEncoding is present (#77)
Text is now properly skipped when a `SkipEncoding` component is present.
1 parent 1a8dca5 commit 941b781

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

CHANGELOG.md

+8
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ You can find its changes [documented below](#051---2024-07-04).
1515

1616
This release supports Bevy version 0.14 and has an [MSRV][] of 1.80.
1717

18+
### Fixed
19+
20+
- Text is now properly skipped when a `SkipEncoding` component is present. ([#77] by [@simbleau])
21+
1822
## [0.6.0] - 2024-08-09
1923

2024
This release supports Bevy version 0.14 and has an [MSRV][] of 1.80.
@@ -225,6 +229,10 @@ This release supports Bevy version 0.13 and has an [MSRV][] of 1.77.
225229

226230
- Initial release
227231

232+
[#77]: https://github.com/linebender/bevy_vello/pull/77
233+
234+
[@simbleau]: https://github.com/simbleau
235+
228236
[Unreleased]: https://github.com/linebender/bevy_vello/compare/v0.6.0...HEAD
229237
[0.6.0]: https://github.com/linebender/bevy_vello/compare/v0.5.1...v0.6.0
230238
[0.5.1]: https://github.com/linebender/bevy_vello/compare/v0.5.0...v0.5.1

src/render/extract.rs

+12-9
Original file line numberDiff line numberDiff line change
@@ -199,15 +199,18 @@ pub struct ExtractedRenderText {
199199
pub fn extract_text(
200200
mut commands: Commands,
201201
query_scenes: Extract<
202-
Query<(
203-
&VelloTextSection,
204-
&VelloTextAnchor,
205-
&GlobalTransform,
206-
&ViewVisibility,
207-
&InheritedVisibility,
208-
&CoordinateSpace,
209-
Option<&RenderLayers>,
210-
)>,
202+
Query<
203+
(
204+
&VelloTextSection,
205+
&VelloTextAnchor,
206+
&GlobalTransform,
207+
&ViewVisibility,
208+
&InheritedVisibility,
209+
&CoordinateSpace,
210+
Option<&RenderLayers>,
211+
),
212+
Without<SkipEncoding>,
213+
>,
211214
>,
212215
) {
213216
for (

0 commit comments

Comments
 (0)