-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Clean up type registrations #12314
Clean up type registrations #12314
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did a little search in some places. Looks good, thank you, but I have a comment.
crates/bevy_pbr/src/lib.rs
Outdated
.register_type::<CascadeShadowConfig>() | ||
.register_type::<Cascades>() | ||
.register_type::<CascadesVisibleEntities>() | ||
.register_type::<ClusterConfig>() | ||
.register_type::<ClusterFarZMode>() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't we remove ClusterFarZMode
? After all, ClusterZConfig
has this types in fields.
ClusterConfig
has some types too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, this file has some other kinds that can be removed as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be more cleaned up now.
# Objective Fix bevyengine#12304. Remove unnecessary type registrations thanks to bevyengine#4154. ## Solution Conservatively remove type registrations. Keeping the top level components, resources, and events, but dropping everything else that is a type of a member of those types.
It looks like your PR is a breaking change, but you didn't provide a migration guide. Could you add some context on what users should update when this change get released in a new version of Bevy? |
Objective
Fix #12304. Remove unnecessary type registrations thanks to #4154.
Solution
Conservatively remove type registrations. Keeping the top level components, resources, and events, but dropping everything else that is a type of a member of those types.