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

Delete components after killing entities to avoid clearing components when the entity has the wrong generation #766

Merged
merged 5 commits into from Jun 10, 2023

Conversation

Imberflur
Copy link
Contributor

Checklist

  • I've added tests for all code changes and additions (where applicable)
  • [ ] I've added a demonstration of the new feature to one or more examples
  • [ ] I've updated the book to reflect my changes
  • [ ] Usage of new public items is shown in the API docs

API changes

WorldExt::delete_entities method now includes the index of the entity with the wrong generation to indicate to the user where it stopped (since entities after that are not deleted).

… on an

entity with the wrong generation.

Also removed some spots that redudantly try to ensure that `MetaTable<dyn
AnyStorage>>` is available since it is always inserted in `WorldExt::new`.
… doesn't

need to follow it and it should be faster, add cargo-deny exception for
Unicode-DFS-2016 license in unicode-ident
@zesterer
Copy link
Contributor

zesterer commented Jun 6, 2023

I was about to ping @Imberflur to discuss this, then realised you'd just changed your profile picture 😀

Copy link
Contributor

@zesterer zesterer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This all looks good to me. Quite a surprising bug!

dev-dependencies, since we will need to bump the MSRV for other reasons soon
enough)
CHANGELOG.md Show resolved Hide resolved
@Imberflur Imberflur merged commit fda626d into amethyst:master Jun 10, 2023
14 of 19 checks passed
@Imberflur Imberflur deleted the entity-deletion branch June 10, 2023 16:45
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.

None yet

3 participants