Merge pull request #32819 from madmiraal/fix-bullet-unsleep

Call activate function when setting RigidBodyBullet activation state.
This commit is contained in:
Rémi Verschelde 2019-10-15 08:34:48 +02:00 committed by GitHub
commit 48d3458f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -473,7 +473,7 @@ void RigidBodyBullet::assert_no_constraints() {
void RigidBodyBullet::set_activation_state(bool p_active) { void RigidBodyBullet::set_activation_state(bool p_active) {
if (p_active) { if (p_active) {
btBody->setActivationState(ACTIVE_TAG); btBody->activate();
} else { } else {
btBody->setActivationState(WANTS_DEACTIVATION); btBody->setActivationState(WANTS_DEACTIVATION);
} }