ColliderSet::handle_user_changes - don't drain the set of modified colliders.

This commit is contained in:
Crozet Sébastien
2021-03-31 18:12:00 +02:00
parent a6b8b4b638
commit a484511718

View File

@@ -317,7 +317,7 @@ impl ColliderSet {
Self::maintain_one(bodies, rb)
}
} else {
for handle in self.modified_colliders.drain(..) {
for handle in self.modified_colliders.iter() {
if let Some(rb) = self.colliders.get_mut(handle.0) {
Self::maintain_one(bodies, rb)
}