Selaa lähdekoodia

Fix error when pinning soft body point without attachment

Mikael Hermansson 1 vuosi sitten
vanhempi
commit
a3f07ad858
1 muutettua tiedostoa jossa 0 lisäystä ja 3 poistoa
  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()) {
 		if (!w[i].spatial_attachment_path.is_empty()) {
 			w[i].spatial_attachment = Object::cast_to<Node3D>(get_node(w[i].spatial_attachment_path));
 			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!");
-		}
 	}
 	}
 }
 }