diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-10-15 08:34:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-15 08:34:48 +0200 |
commit | 48d3458f74ee3a5c0596c905b72b52af612cde87 (patch) | |
tree | 11969a10af8f4c61b35c7fc4d44e350e2285be9c | |
parent | 8d19bf11d09e9ba1a19ac36ef1009c68ccacf3a5 (diff) | |
parent | 0539023fd40080941264231d871ea05385c10304 (diff) |
Merge pull request #32819 from madmiraal/fix-bullet-unsleep
Call activate function when setting RigidBodyBullet activation state.
-rw-r--r-- | modules/bullet/rigid_body_bullet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp index 89f3064d7a..f29c4cb9ca 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); } |