diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-01-08 20:13:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-08 20:13:27 +0100 |
commit | d2f4964f58272444f33d6397939ca076b6e1b8f6 (patch) | |
tree | 3671c000c977288e84d94a524459bcac797a1926 /modules/bullet/shape_bullet.cpp | |
parent | 15cb56122e3275b1b0f5018e03350ec1c2573d4a (diff) | |
parent | c507a4988da699bc00c425dc702ee97e0022fae3 (diff) |
Merge pull request #15490 from AndreaCatania/kin
Fixed #15417 kinematics char jumping
Diffstat (limited to 'modules/bullet/shape_bullet.cpp')
-rw-r--r-- | modules/bullet/shape_bullet.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modules/bullet/shape_bullet.cpp b/modules/bullet/shape_bullet.cpp index ee1cc418bc..27eac4e6ee 100644 --- a/modules/bullet/shape_bullet.cpp +++ b/modules/bullet/shape_bullet.cpp @@ -48,11 +48,6 @@ ShapeBullet::ShapeBullet() {} ShapeBullet::~ShapeBullet() {} -btCollisionShape *ShapeBullet::create_bt_shape() { - btVector3 s(1, 1, 1); - return create_bt_shape(s); -} - btCollisionShape *ShapeBullet::create_bt_shape(const Vector3 &p_implicit_scale, real_t p_margin) { btVector3 s; G_TO_B(p_implicit_scale, s); @@ -82,7 +77,7 @@ void ShapeBullet::add_owner(ShapeOwnerBullet *p_owner) { void ShapeBullet::remove_owner(ShapeOwnerBullet *p_owner, bool p_permanentlyFromThisBody) { Map<ShapeOwnerBullet *, int>::Element *E = owners.find(p_owner); - ERR_FAIL_COND(!E); + if (!E) return; E->get()--; if (p_permanentlyFromThisBody || 0 >= E->get()) { owners.erase(E); |