summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-15 08:34:48 +0200
committerGitHub <noreply@github.com>2019-10-15 08:34:48 +0200
commit48d3458f74ee3a5c0596c905b72b52af612cde87 (patch)
tree11969a10af8f4c61b35c7fc4d44e350e2285be9c
parent8d19bf11d09e9ba1a19ac36ef1009c68ccacf3a5 (diff)
parent0539023fd40080941264231d871ea05385c10304 (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.cpp2
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);
}