From 0539023fd40080941264231d871ea05385c10304 Mon Sep 17 00:00:00 2001 From: Marcel Admiraal Date: Mon, 14 Oct 2019 10:03:10 +0200 Subject: [PATCH] Call activate function when setting RigidBodyBullet activation state. --- modules/bullet/rigid_body_bullet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp index 89f3064d7a5..f29c4cb9ca6 100644 --- a/modules/bullet/rigid_body_bullet.cpp +++ b/modules/bullet/rigid_body_bullet.cpp @@ -473,7 +473,7 @@ void RigidBodyBullet::assert_no_constraints() { void RigidBodyBullet::set_activation_state(bool p_active) { if (p_active) { - btBody->setActivationState(ACTIVE_TAG); + btBody->activate(); } else { btBody->setActivationState(WANTS_DEACTIVATION); }