Skip to content

Commit

Permalink
Fix field visibility for read-only WorldQuery types (bevyengine#8163)
Browse files Browse the repository at this point in the history
When using the `#[derive(WorldQuery)]` macro, the `ReadOnly` struct
generated has default (private) visibility for each field, regardless of
the visibility of the original field.

For each field of a read-only `WorldQuery` variant, use the visibility
of the associated field defined on the original struct.
  • Loading branch information
JoJoJet authored and UkoeHB committed Sep 10, 2023
1 parent 12c6fa7 commit f500e64
Show file tree
Hide file tree
Showing 2 changed files with 410 additions and 560 deletions.

0 comments on commit f500e64

Please sign in to comment.