From 23ee02071ec76fde1c8c59d2bdce3b120d7736d9 Mon Sep 17 00:00:00 2001 From: sgold Date: Thu, 11 Jul 2019 20:25:37 -0700 Subject: [PATCH] fix for issue #1141 --- .../native/cpp/com_jme3_bullet_objects_PhysicsRigidBody.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/jme3-bullet-native/src/native/cpp/com_jme3_bullet_objects_PhysicsRigidBody.cpp b/jme3-bullet-native/src/native/cpp/com_jme3_bullet_objects_PhysicsRigidBody.cpp index 1d726038f..3c05e124f 100644 --- a/jme3-bullet-native/src/native/cpp/com_jme3_bullet_objects_PhysicsRigidBody.cpp +++ b/jme3-bullet-native/src/native/cpp/com_jme3_bullet_objects_PhysicsRigidBody.cpp @@ -52,9 +52,7 @@ extern "C" { btMotionState* motionState = reinterpret_cast(motionstatId); btCollisionShape* shape = reinterpret_cast(shapeId); btVector3 localInertia = btVector3(); - if(mass > 0){ - shape->calculateLocalInertia(mass, localInertia); - } + shape->calculateLocalInertia(mass, localInertia); btRigidBody* body = new btRigidBody(mass, motionState, shape, localInertia); body->setUserPointer(NULL); return reinterpret_cast(body);