summaryrefslogtreecommitdiffstats
path: root/scene
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-01-26 11:46:13 +0100
committerRémi Verschelde <rverschelde@gmail.com>2024-01-26 11:46:13 +0100
commite96030ecb424d8cda5ed033c020e2047e8175872 (patch)
tree5617c77dcc27bee88a1e177dfd78213aa86c04f8 /scene
parent184009eda65d2c3f504712169db4d462c8b42cd0 (diff)
parenta3f07ad858ae69f6837c3a55fca22c566b1523b8 (diff)
downloadredot-engine-e96030ecb424d8cda5ed033c020e2047e8175872.tar.gz
Merge pull request #87506 from mihe/soft-body-without-attachment
Fix error when pinning soft body point without attachment
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/soft_body_3d.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/scene/3d/soft_body_3d.cpp b/scene/3d/soft_body_3d.cpp
index 3f1878f30f..0aaa806ee6 100644
--- a/scene/3d/soft_body_3d.cpp
+++ b/scene/3d/soft_body_3d.cpp
@@ -714,9 +714,6 @@ void SoftBody3D::_update_cache_pin_points_datas() {
if (!w[i].spatial_attachment_path.is_empty()) {
w[i].spatial_attachment = Object::cast_to<Node3D>(get_node(w[i].spatial_attachment_path));
}
- if (!w[i].spatial_attachment) {
- ERR_PRINT("Node3D node not defined in the pinned point, this is undefined behavior for SoftBody3D!");
- }
}
}