diff options
author | AndreaCatania <info@andreacatania.com> | 2017-12-23 12:36:51 +0100 |
---|---|---|
committer | AndreaCatania <info@andreacatania.com> | 2017-12-23 12:36:51 +0100 |
commit | 0f5c87bfa4f4380b85b453f223ae0940d87e2ff5 (patch) | |
tree | 3c0627221ab76cc5269a9ad0c3af686c6862952c | |
parent | aea1b2e6c336559bfe3eda3c779044fdaa8ae892 (diff) |
Fixed dispatch callback
-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 26a4eeb065..5e736c1856 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); |