diff options
author | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2019-10-14 10:03:10 +0200 |
---|---|---|
committer | Marcel Admiraal <madmiraal@users.noreply.github.com> | 2019-10-14 10:04:44 +0200 |
commit | 0539023fd40080941264231d871ea05385c10304 (patch) | |
tree | 79daf940ae184290568aef04ae0a8133cf4d61f4 /modules/bullet | |
parent | 1fed266bf5452b30376db62495f4985f6975f2c1 (diff) |
Call activate function when setting RigidBodyBullet activation state.
Diffstat (limited to 'modules/bullet')
-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); } |