Properly reset the BodySet::modified_all_bodies flag.

This commit is contained in:
Crozet Sébastien
2021-01-12 15:07:39 +01:00
parent b58295f2a4
commit 87b56c38b6

View File

@@ -410,6 +410,7 @@ impl RigidBodySet {
}
self.modified_bodies.clear();
self.modified_all_bodies = false;
} else {
for handle in self.modified_bodies.drain(..) {
if let Some(rb) = self.bodies.get_mut(handle) {