From a3f07ad858ae69f6837c3a55fca22c566b1523b8 Mon Sep 17 00:00:00 2001 From: Mikael Hermansson Date: Tue, 23 Jan 2024 16:37:48 +0100 Subject: [PATCH] Fix error when pinning soft body point without attachment --- scene/3d/soft_body_3d.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/scene/3d/soft_body_3d.cpp b/scene/3d/soft_body_3d.cpp index 3f1878f30f0..0aaa806ee6f 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(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!"); - } } }