Call activate function when setting RigidBodyBullet activation state.

(cherry picked from commit 0539023fd4)
This commit is contained in:
Marcel Admiraal 2019-10-14 10:03:10 +02:00 committed by Rémi Verschelde
parent fe90b69e0f
commit 37f7dcf3bc
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,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);
} }