Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Merged by Bors] - Cherry pick "bevy_reflect: Register missing reflected types for bevy_render (#6725)" #6811

Closed
wants to merge 1 commit into from

Conversation

cart
Copy link
Member

@cart cart commented Dec 1, 2022

This had merge conflicts with the 0.9.1 release branch, so this had to be merged manually. Creating a PR for visibility + a final review.

…yengine#6725)

Many types in `bevy_render` implemented `Reflect` but were not registered.

Register all types in `bevy_render` that impl `Reflect`.

This also registers additional dependent types (i.e. field types).

> Note: Adding these dependent types would not be needed using something like bevyengine#5781 😉

---

- Register missing `bevy_render` types in the `TypeRegistry`:
  - `camera::RenderTarget`
  - `globals::GlobalsUniform`
  - `texture::Image`
  - `view::ComputedVisibility`
  - `view::Visibility`
  - `view::VisibleEntities`
- Register additional dependent types:
  - `view::ComputedVisibilityFlags`
  - `Vec<Entity>`
Copy link
Member

@MrGVSV MrGVSV left a comment

Choose a reason for hiding this comment

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

Looks good!

For others' reference, the only difference from #6725 is that this one doesn't have ComputedVisibilityFlags

@cart
Copy link
Member Author

cart commented Dec 1, 2022

Lets see if this merges as-is or if we need to cherry pick the CI fixes :)

@cart
Copy link
Member Author

cart commented Dec 1, 2022

bors r+

@hymm
Copy link
Contributor

hymm commented Dec 1, 2022

FYI you shouldn't need the miri one as it hasn't been a part of r+'s for awhile

bors bot pushed a commit that referenced this pull request Dec 1, 2022
…_render` (#6725)" (#6811)

This had merge conflicts with the 0.9.1 release branch, so this had to be merged manually. Creating a PR for visibility + a final review.
@bors
Copy link
Contributor

bors bot commented Dec 1, 2022

Build failed:

@cart
Copy link
Member Author

cart commented Dec 1, 2022

Should be fixed now after cherry picking the relevant CI fixes into the 0.9.1 branch.

@cart
Copy link
Member Author

cart commented Dec 1, 2022

bors r+

bors bot pushed a commit that referenced this pull request Dec 1, 2022
…_render` (#6725)" (#6811)

This had merge conflicts with the 0.9.1 release branch, so this had to be merged manually. Creating a PR for visibility + a final review.
@bors bors bot changed the title Cherry pick "bevy_reflect: Register missing reflected types for bevy_render (#6725)" [Merged by Bors] - Cherry pick "bevy_reflect: Register missing reflected types for bevy_render (#6725)" Dec 1, 2022
@bors bors bot closed this Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants