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

Fix error when pinning soft body point without attachment
This commit is contained in:
Rémi Verschelde 2024-01-26 11:46:13 +01:00
commit e96030ecb4
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 0 additions and 3 deletions

View File

@ -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!");
}
}
}