summaryrefslogtreecommitdiffstats
path: root/modules/bullet
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2018-08-03 17:44:09 +0200
committerAndrea Catania <info@andreacatania.com>2018-08-03 17:44:09 +0200
commitb469267d949b1bb78e9d0b73ada3787dc0ea5963 (patch)
treecf3ed15be5c07dd2f2405ddc7f780e189b39f1ee /modules/bullet
parent6c569c90b666c7fb773eca3948fc76ba7a160a27 (diff)
downloadredot-engine-b469267d949b1bb78e9d0b73ada3787dc0ea5963.tar.gz
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;