Merge pull request #27730 from ShyRed/fix3dphyscansleep

Fix missing re-activation of bullet physics sleep feature
This commit is contained in:
Hein-Pieter van Braam 2019-04-23 06:03:27 +03:00 committed by GitHub
commit 7ba772d4ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -597,6 +597,8 @@ void RigidBodyBullet::set_state(PhysicsServer::BodyState p_state, const Variant
if (!can_sleep) {
// Can't sleep
btBody->forceActivationState(DISABLE_DEACTIVATION);
} else {
btBody->forceActivationState(ACTIVE_TAG);
}
break;
}