Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix field visibility for read-only
WorldQuery
types (bevyengine#8163)
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