-
-
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
Add ReflectFromWorld
and replace the FromWorld
requirement on ReflectComponent
and ReflectBundle
with FromReflect
#9623
Merged
alice-i-cecile
merged 12 commits into
bevyengine:main
from
SkiFire13:fromworld-reflectcomponent
Jan 19, 2024
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
0480568
Add ReflectFromWorld
SkiFire13 face9a4
Replace FromWorld requirement on ReflectBundle with FromReflect
SkiFire13 2f2f303
Replace FromWorld requirement on ReflectComponent with FromReflect
SkiFire13 5c11765
Fallback to FromWorld
SkiFire13 eb11264
Avoid using FromReflect for the last step of from_reflect_or_world
SkiFire13 e88aaca
Add documentation to from_reflect_or_world
SkiFire13 125034c
Forgot one use of from_reflect_or_world
SkiFire13 9905af4
ReflectBundle: delegate to ReflectComponent if possible and fix error…
SkiFire13 95579d0
ReflectComponent: add a TypeRegistry parameter for reflecting other t…
SkiFire13 29164e6
Fix doc lint
SkiFire13 bd1dc46
Some wording improvement
SkiFire13 eca893b
Improve documentation
SkiFire13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
While reworking
insert_field
I realized it would make sense to check if theBundle
being inserted is a singleComponent
, in which case it shouldn't insert each field as if it was itself a bundle/component (which would be wrong). I guess usuallyReflectComponent
should be checked beforeReflectBundle
, but if someone made a mistake we should catch it. This won't work though if someone only registersReflectBundle
and notReflectComponent
. It's also a technically a change in behaviour (though I would argue any case where a change is observable was likely behaving wrongly before).