From 37f7dcf3bc3ca427d38e1daa26b2761b6d7e80b4 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. (cherry picked from commit 0539023fd40080941264231d871ea05385c10304) --- 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 e5f70a0b340..da8eb72484a 100644 --- a/modules/bullet/rigid_body_bullet.cpp +++ b/modules/bullet/rigid_body_bullet.cpp @@ -471,7 +471,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); }