-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
fallback to remove components one by one when failing to remove a bundle #719
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
90e3ee8
fallback to remove components one by one when failing to remove a bundle
mockersf 501d4da
do not use slower fallback when issue is that entity doesn't exist
mockersf 2d1a285
update test
mockersf 17c8786
only get location once in normal path
mockersf bcdf30d
cleaner return
mockersf a788af0
check entity presence before splitting archetypes
mockersf dba4ac4
Revert "check entity presence before splitting archetypes"
cart 15942bf
Revert "cleaner return"
cart 27af0ef
Revert "only get location once in normal path"
cart fc83a1b
update to master and scope unsafe
cart 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
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.
Retrieving the location here and in remove() is redundant work. I'd prefer it if we found a way to only do this once (ex: pass the location into remove_bundle_internal)
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.
That was not possible, as location needs to be an
&mut
that referencesself
, which also needs to be an&mut
to callremove_bundle_internal
.I was able to remove getting the location from
remove
by retrieving the bundle value inremove_bundle_internal
. When coming fromremove_one_by_one
, this will not return the expected value as we actually can't get it, that's why there is a parametercheck_presence
set to false when coming from this function...