You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Fix error when pinning soft body point without attachment
This commit is contained in:
@@ -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!");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user