We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
update_old_parent
0.10.1
I have a setup like this:
- parent 1 - child 1
I have a change like this:
1. Spawn parent 2 2. despawn parent 1 3. add child 1 as a child of parent 2
And I get this error: thread 'main' panicked at 'Entity 43v0 does not exist'
thread 'main' panicked at 'Entity 43v0 does not exist'
It looks like we just need to check if the parent exists.
The text was updated successfully, but these errors were encountered:
Here is a reproducible example:
use bevy::prelude::*; fn main() { App::new() .add_plugins(DefaultPlugins) .add_startup_system(bug) .run(); } fn bug(world: &mut World) { let parent_0 = world.spawn_empty().id(); let child_0 = world.spawn_empty().id(); world.entity_mut(parent_0).add_child(child_0); world.entity_mut(parent_0).despawn(); let parent_1 = world.spawn_empty().id(); world.entity_mut(parent_1).add_child(child_0); }
Sorry, something went wrong.
I agree that this is a bug: this shouldn't crash.
7604464
Successfully merging a pull request may close this issue.
Bevy version
0.10.1
What you did
I have a setup like this:
What went wrong
I have a change like this:
And I get this error:
thread 'main' panicked at 'Entity 43v0 does not exist'
Additional information
It looks like we just need to check if the parent exists.
The text was updated successfully, but these errors were encountered: