diff options
author | Andrea Catania <info@andreacatania.com> | 2018-08-31 09:40:50 +0200 |
---|---|---|
committer | Andrea Catania <info@andreacatania.com> | 2018-09-06 18:53:03 +0200 |
commit | 88967e40013212c2144cd4d35412aa1a3026b36b (patch) | |
tree | 778ffc78bd634dbea375e122a4ee1978a286c947 /modules/bullet/rigid_body_bullet.cpp | |
parent | 9b446f1cc30301324f05b13fa3a773e501e0ced0 (diff) |
Fixing trimesh precision
Diffstat (limited to 'modules/bullet/rigid_body_bullet.cpp')
-rw-r--r-- | modules/bullet/rigid_body_bullet.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/bullet/rigid_body_bullet.cpp b/modules/bullet/rigid_body_bullet.cpp index 3088ecb9dd..2974d6b3e4 100644 --- a/modules/bullet/rigid_body_bullet.cpp +++ b/modules/bullet/rigid_body_bullet.cpp @@ -321,7 +321,8 @@ void RigidBodyBullet::main_shape_resetted() { void RigidBodyBullet::reload_body() { if (space) { space->remove_rigid_body(this); - space->add_rigid_body(this); + if (get_main_shape()) + space->add_rigid_body(this); } } |