Skip to content
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

Implement hierarchy.RemoveParent #155

Merged
merged 1 commit into from
Nov 9, 2024
Merged

Conversation

m110
Copy link
Contributor

@m110 m110 commented Nov 8, 2024

Hey! I've been dealing with a very strange bug where one entity gets multiple parents. After wrestling with it for a while, I realized the issue was that Donburi recycled an entity ID for another object, which was already a child.

I realized that RemoveRecursive doesn't delete the objects from the child list, and transform.RemoveParent doesn't either.

This should fix this, but I'm not sure if it's clear how to use hierarchy and transform now 🤔 Perhaps we could merge the code to transform to make it clearer what's going on there. I'm not sure if it makes sense to use hierarchy without transforms.

@yohamta
Copy link
Owner

yohamta commented Nov 9, 2024

Thanks for catching and investigating this tricky bug with multiple parents! I totally agree that we should merge those packages together into the transform package. Probably splitting those packages makes no sense.

@yohamta yohamta merged commit ad1b847 into yohamta:main Nov 9, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants