-
-
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
[Merged by Bors] - Make adding children idempotent #6763
Closed
Closed
Conversation
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
james7132
reviewed
Nov 26, 2022
james7132
added
P-Crash
A sudden unexpected crash
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
A-Hierarchy
Parent-child entity hierarchies
labels
Nov 26, 2022
JoJoJet
changed the title
Warn instead of panicking when parenting is redundant
Make adding children idempotent
Nov 27, 2022
JoJoJet
requested review from
alice-i-cecile and
james7132
and removed request for
alice-i-cecile
November 27, 2022 02:50
james7132
approved these changes
Nov 27, 2022
alice-i-cecile
approved these changes
Nov 27, 2022
alice-i-cecile
added
the
S-Ready-For-Final-Review
This PR has been approved by the community. It's ready for a maintainer to consider merging it
label
Nov 27, 2022
bors r+ |
bors bot
pushed a commit
that referenced
this pull request
Nov 28, 2022
# Objective * Fix #6668 * There is no need to panic when a parenting operation is redundant, as no invalid state is entered. ## Solution Make `push_children` idempotent.
Pull request successfully merged into main. Build succeeded:
|
bors
bot
changed the title
Make adding children idempotent
[Merged by Bors] - Make adding children idempotent
Nov 28, 2022
taiyoungjang
pushed a commit
to taiyoungjang/bevy
that referenced
this pull request
Dec 15, 2022
# Objective * Fix bevyengine#6668 * There is no need to panic when a parenting operation is redundant, as no invalid state is entered. ## Solution Make `push_children` idempotent.
alradish
pushed a commit
to alradish/bevy
that referenced
this pull request
Jan 22, 2023
# Objective * Fix bevyengine#6668 * There is no need to panic when a parenting operation is redundant, as no invalid state is entered. ## Solution Make `push_children` idempotent.
ItsDoot
pushed a commit
to ItsDoot/bevy
that referenced
this pull request
Feb 1, 2023
# Objective * Fix bevyengine#6668 * There is no need to panic when a parenting operation is redundant, as no invalid state is entered. ## Solution Make `push_children` idempotent.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Hierarchy
Parent-child entity hierarchies
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
P-Crash
A sudden unexpected crash
S-Ready-For-Final-Review
This PR has been approved by the community. It's ready for a maintainer to consider merging it
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.
Objective
parent != previous
When Adding a Child to a Parent When It's Already a Child #6668Solution
Make
push_children
idempotent.