-
Notifications
You must be signed in to change notification settings - Fork 112
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
TaffyTree::set_children: Remove from previous parent #749
Conversation
Hmm... I'm sympathetic to the idea that this ought to work like this. But this is a breaking change (of the kind where people might actually have been relying on the current behaviour) so I don't think we can release it as a 0.6 version. And the current behaviour isn't technically wrong, just unexpected. Summoning the Unofficial Taffy Committee @alice-i-cecile @TimJentzsch @Weibye thoughts?
|
Hmm, I assumed it was unintentional because the type is called TaffyTree, and a node's parent is stored in a |
First thoughts:
|
Fully agree with @TimJentzsch's analysis here. I like the move semantics. I'm fine with carefully documented raw methods, but only when we actually have users asking for them. |
Ok, sounds like there's consensus on this change :) Out of an abundance of caution (and a lack of consequences to bumping version numbers) I think I will consider this a breaking change and make the next release |
@SpecificProtagonist Released in Taffy 0.7. Bevy upgrade PR here: bevyengine/bevy#16780 |
# Objective - Includes DioxusLabs/taffy#749 - Which should fix #16639 ## Solution - Bump taffy version from `0.6` to `0.7` ## Testing - I have run a couple of examples, but no extensive testing. Signed-off-by: Nico Burns <[email protected]>
Objective
TaffyTree::set_children
did not remove the children from their previous parent, resulting in an inconsistent hierarchy. Fix this.Context
Causes a crash in bevyengine/bevy#16639.
This bug was present in previous taffy releases too; backporting it should be simple.