From 3523ab06d3a59c3280366da48c6174baa54145ad 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 465c15620..ae011413f 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);