summaryrefslogtreecommitdiff
path: root/modules/bullet
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2018-08-04 09:10:57 -0300
committerGitHub <noreply@github.com>2018-08-04 09:10:57 -0300
commitc41397596dd829e44dab2c3fd8de9ce655238ee3 (patch)
treed5e5cd6f4ddffba38a2e39aeb40646c32f9017ac /modules/bullet
parentb34d2efedbaf8d0f6074513db686c4eb91311a62 (diff)
parentb469267d949b1bb78e9d0b73ada3787dc0ea5963 (diff)
Merge pull request #20693 from AndreaCatania/soft_fix2
Fixed SoftBody pinned point offset calculation
Diffstat (limited to 'modules/bullet')
-rw-r--r--modules/bullet/soft_body_bullet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/bullet/soft_body_bullet.cpp b/modules/bullet/soft_body_bullet.cpp
index 1686a6e87e..9fc7230f91 100644
--- a/modules/bullet/soft_body_bullet.cpp
+++ b/modules/bullet/soft_body_bullet.cpp
@@ -123,7 +123,7 @@ void SoftBodyBullet::update_visual_server(SoftBodyVisualServerHandler *p_visual_
void SoftBodyBullet::set_soft_mesh(const Ref<Mesh> &p_mesh) {
- if (p_mesh.is_null() || !p_mesh->surface_is_softbody_friendly(0))
+ if (p_mesh.is_null())
soft_mesh.unref();
else
soft_mesh = p_mesh;