Fix error when pinning soft body point without attachment

This commit is contained in:
Mikael Hermansson 2024-01-23 16:37:48 +01:00
parent 6fea273ed3
commit a3f07ad858

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