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 92bac21 commit 64526a1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,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 64526a1

Please sign in to comment.