Skip to content

Commit

Permalink
Remove previous parent after parent deletion
Browse files Browse the repository at this point in the history
  • Loading branch information
svents committed Oct 21, 2020
1 parent 6930bf2 commit 5785ce6
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn parent_update_system(
{
log::trace!(" > Removing {:?} from it's prev parent's children", entity);
previous_parent_children.0.retain(|e| *e != entity);
commands.remove_one::<PreviousParent>(entity);
}
}

Expand Down

0 comments on commit 5785ce6

Please sign in to comment.