浏览代码

Reload Bullet space override modifier even when RigidBody is inactive.

Marcel Admiraal 5 年之前
父节点
当前提交
3a05ca9c2b
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      modules/bullet/rigid_body_bullet.cpp

+ 1 - 2
modules/bullet/rigid_body_bullet.cpp

@@ -897,8 +897,7 @@ void RigidBodyBullet::on_exit_area(AreaBullet *p_area) {
 }
 }
 
 
 void RigidBodyBullet::reload_space_override_modificator() {
 void RigidBodyBullet::reload_space_override_modificator() {
-	// Make sure that kinematic bodies have their total gravity calculated
-	if (!is_active() && PhysicsServer3D::BODY_MODE_KINEMATIC != mode) {
+	if (mode == PhysicsServer3D::BODY_MODE_STATIC) {
 		return;
 		return;
 	}
 	}