mirror of
https://github.com/bevyengine/bevy
synced 2024-11-22 20:53:53 +00:00
87fa69bd7e
# Objective Tight, in-frame generation, re-parenting, despawning, etc., UI operations could sometime lead taffy to panic (invalid SlotMap key used) when an entity with an invalid state later despawned. Fixes #12403 ## Solution Move the `remove_entities` call after children updates. ## Testing `sickle_ui` had a case that always caused the panic. Tested before this change, after this change, and before the change again to make sure the error is there without the fix. The fix worked. Test steps and used commit described in issue #12403. I have also ran every bevy UI example, though none of them deal with entity re-parenting or removal. No regression detected on them. Tested on Windows only. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |