aboutsummaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorAndreaCatania2017-12-23 12:36:51 +0100
committerAndreaCatania2017-12-23 12:36:51 +0100
commit0f5c87bfa4f4380b85b453f223ae0940d87e2ff5 (patch)
tree3c0627221ab76cc5269a9ad0c3af686c6862952c /modules
parentaea1b2e6c336559bfe3eda3c779044fdaa8ae892 (diff)
downloadgodot-0f5c87bfa4f4380b85b453f223ae0940d87e2ff5.tar.gz
godot-0f5c87bfa4f4380b85b453f223ae0940d87e2ff5.tar.zst
godot-0f5c87bfa4f4380b85b453f223ae0940d87e2ff5.zip
Fixed dispatch callback
Diffstat (limited to 'modules')
-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 26a4eeb06..5e736c185 100644
--- a/modules/bullet/rigid_body_bullet.cpp
+++ b/modules/bullet/rigid_body_bullet.cpp
@@ -339,7 +339,7 @@ void RigidBodyBullet::set_space(SpaceBullet *p_space) {
void RigidBodyBullet::dispatch_callbacks() {
/// The check isTransformChanged is necessary in order to call integrated forces only when the first transform is sent
- if (previousActiveState != btBody->isActive() && force_integration_callback && isTransformChanged) {
+ if ((btBody->isActive() || previousActiveState != btBody->isActive()) && force_integration_callback && isTransformChanged) {
BulletPhysicsDirectBodyState *bodyDirect = BulletPhysicsDirectBodyState::get_singleton(this);