Skip to content

Commit

Permalink
fix: skip text when SkipEncoding is present (#77)
Browse files Browse the repository at this point in the history
Text is now properly skipped when a `SkipEncoding` component is present.
  • Loading branch information
simbleau committed Aug 14, 2024
1 parent 1a8dca5 commit 941b781
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 9 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ You can find its changes [documented below](#051---2024-07-04).

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

### Fixed

- Text is now properly skipped when a `SkipEncoding` component is present. ([#77] by [@simbleau])

## [0.6.0] - 2024-08-09

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

- Initial release

[#77]: https://github.com/linebender/bevy_vello/pull/77

[@simbleau]: https://github.com/simbleau

[Unreleased]: https://github.com/linebender/bevy_vello/compare/v0.6.0...HEAD
[0.6.0]: https://github.com/linebender/bevy_vello/compare/v0.5.1...v0.6.0
[0.5.1]: https://github.com/linebender/bevy_vello/compare/v0.5.0...v0.5.1
Expand Down
21 changes: 12 additions & 9 deletions src/render/extract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -199,15 +199,18 @@ pub struct ExtractedRenderText {
pub fn extract_text(
mut commands: Commands,
query_scenes: Extract<
Query<(
&VelloTextSection,
&VelloTextAnchor,
&GlobalTransform,
&ViewVisibility,
&InheritedVisibility,
&CoordinateSpace,
Option<&RenderLayers>,
)>,
Query<
(
&VelloTextSection,
&VelloTextAnchor,
&GlobalTransform,
&ViewVisibility,
&InheritedVisibility,
&CoordinateSpace,
Option<&RenderLayers>,
),
Without<SkipEncoding>,
>,
>,
) {
for (
Expand Down

0 comments on commit 941b781

Please sign in to comment.