Browse Source

Merge pull request #87506 from mihe/soft-body-without-attachment

Fix error when pinning soft body point without attachment
Rémi Verschelde 1 year ago
parent
commit
e96030ecb4
1 changed files with 0 additions and 3 deletions
  1. 0 3
      scene/3d/soft_body_3d.cpp

+ 0 - 3
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!");
-		}
 	}
 }